We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ab9845 commit 5966e7fCopy full SHA for 5966e7f
1 file changed
packages/__docs__/src/index.tsx
@@ -31,8 +31,9 @@ import { InstUISettingsProvider } from '@instructure/emotion'
31
import '../globals'
32
33
// Restore the original URL after a GitHub Pages 404 -> SPA redirect.
34
-// The 404.html (built in deploy.yml) redirects PR preview sub-routes to
35
-// /pr-preview/pr-{N}/?__spa_route=/path, and this code restores the clean URL.
+// 404.html (a copy of index.html, made in deploy.yml) rewrites any deep
+// link under the deploy base (e.g. /latest/, /v10/, /pr-preview/pr-N/) to
36
+// <PUBLIC_PATH>?__spa_route=/path. This restores the clean URL on load.
37
const spaRouteParam = new URLSearchParams(window.location.search).get(
38
'__spa_route'
39
)
0 commit comments