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

Shows a blank page on a route with a path of 2 hashes or more #61

Open Hervera opened 1 year ago

Hervera commented 1 year ago

Everything works well with any route that has one path username.github.io/repo/:any but when It comes to a route with a path of more than one slash like /users/account, /admin/profile or /:any/:any/:any, the app shows a blank page. You can try username.github.io/repo/:any/:any/:any to reproduce the error on many react apps deployed on gh-pages. The screen is blank and the console shows a 404 error.