Skip to content

Error 404 for SPA (Single Page Application) #27676

Discussion options

You must be logged in to vote

Until we support custom headers (and redirections), I think you will need to live with the 404.html trick (e.g. as mentioned here).

For now, you could mask the 404 status code by just doing an extra client side redirection from your 404.html to your index.html (router).

We don't have an ETA at the moment for when we will have proper support for custom headers and redirection. This is on our radar though.

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
6 replies
@yoannchaudet
Comment options

@paulocoutinhox
Comment options

@yoannchaudet
Comment options

@harry-pham-wise
Comment options

@paulocoutinhox
Comment options

Answer selected by paulocoutinhox
Comment options

You must be logged in to vote
1 reply
@yoannchaudet
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Pages Host a static website, right from your repo Product Feedback
4 participants