rafgraph / spa-github-pages

Host single page apps with GitHub Pages
https://spa-github-pages.rafgraph.dev
MIT License
3.83k stars 565 forks source link

Redirect stays on /?/ #57

Open ourainbows opened 2 years ago

ourainbows commented 2 years ago

When I reload the page it always redirects me to domain/?/repository/subpath and not to the expected route domain/repository/subpath. I also tried creating a new repository with the modified index.html and 404.html, to rule out that it was not a problem with my repo, but I had the same problem: /?/

nh60211as commented 2 years ago

Got the same problem.

Refer to readme and set pathSegmentsToKeep to 1 on 404.html to fix this problem.