Skip to content

Commit

Permalink
fix: update redirect configuration for custom domain compatibility
Browse files Browse the repository at this point in the history
Adjusted `pathSegmentsToKeep` to 0 in 404.html since we're now using a custom domain. This ensures
URL paths are correctly redirected on GitHub Pages, preserving single-page app functionality without
breaking the root path structure.
  • Loading branch information
jboix committed Oct 31, 2024
1 parent 93d11fa commit b6e799b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 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 Down

0 comments on commit b6e799b

Please sign in to comment.