Skip to content

Commit

Permalink
Fixes SPA redirect for custom domain
Browse files Browse the repository at this point in the history
  • Loading branch information
benj-zen committed May 17, 2023
1 parent 5cb95bc commit 4b9a7a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/public/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
// https://username.github.io/repo-name/one/two?a=b&c=d#qwe becomes
// https://username.github.io/repo-name/?/one/two&a=b~and~c=d#qwe
// Otherwise, leave pathSegmentsToKeep as 0.
var pathSegmentsToKeep = 1;
var pathSegmentsToKeep = 0;

var l = window.location;
l.replace(
Expand All @@ -37,4 +37,4 @@
</head>
<body>
</body>
</html>
</html>

0 comments on commit 4b9a7a1

Please sign in to comment.