-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Github Pages: Configuration to avoid initial 404 Network Response #178
Comments
Unfortunately, there is no way to configure GitHub Pages to avoid this. @JohannesHoppe Do you have anything to add here? |
No, the 404.html is the one magic trick that is the foundation for everything to work. If this really doesn't work any longer, then we have indeed an issue... 🫤 |
@JohannesHoppe It still works, but of course the server sends a 404 status with the first request (together with the 404.html). So nothing has changed here, but I also don't see a way to avoid the 404 at all. |
Closing this for now as it's rather an issue around GitHub Pages, not with this tool. |
@suuf I think the main issue is the hosting provider – Github pages. They haven't innovated for years, and now the good-old workaround with the I see two options:
FYI Cloudflare docs: Single-page application (SPA) renderingIf your project does not include a top-level |
Hello!
Apologies if this has been asked before - I am having trouble finding similar issues to this.
Is there a way to configure the deployment so the initial Network Response when navigating to different routes of the application is not 404?
I have deployed my Angular app using angular-cli-ghpages, and it works fine, except when using the Brave browser, a message pops up when navigating to different routes, saying "Sorry, that page is missing". I noticed that this happens possibly because I get a 404 Network Response to my GET Request for the page/route, but the page loads fine. Also, when serving my application locally I don't get 404 Responses when navigating to different routes.
The text was updated successfully, but these errors were encountered: