I\'m trying to post my SPA app that works fine locally but when I push it to Github Pages, the interior pages don\'t register if you navigate to them directly.
For
Well, there is an easy way out.
Create a file in the root directory of your github pages repository named 404.html.
Contents of that file should be:
Loading...
Basically, that script just uses Javascript to perform an XHR on index.html and make the content the document.
I was reluctant to use document.body because I'm thinking of updating the whole document, but if it doesn't work, change doc variable to document.body.
Not sure if this works, so I'll really appreciate feedback.
Remember to use the same domain for the index.html else CORS will kick in.