You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am creating documentation using VitePress. To display a custom 404 page, I added a 404.md file. However, after building the project, the standard 404 page is displayed instead.
Accessing /404.html displays the custom 404 page. However, when accessing non-existent paths such as /foo.html, the standard 404 page appears instead (the custom 404 page is briefly displayed, but then seems to get replaced).
How can I ensure that the custom 404 page is displayed when accessing non-existent paths?
kawamataryo
changed the title
Even after adding a custom 404.md, the standard 404 page is displayed. #3880
Even after adding a custom 404.md, the standard 404 page is displayed.
May 11, 2024
Describe the bug
I am creating documentation using VitePress. To display a custom 404 page, I added a 404.md file. However, after building the project, the standard 404 page is displayed instead.
Here is the reproduction environment: https://stackblitz.com/edit/vite-pukdjm?file=docs%2F404.md
Accessing
/404.html
displays the custom 404 page. However, when accessing non-existent paths such as/foo.html
, the standard 404 page appears instead (the custom 404 page is briefly displayed, but then seems to get replaced).How can I ensure that the custom 404 page is displayed when accessing non-existent paths?
Reproduction
https://stackblitz.com/edit/vite-pukdjm?file=docs%2F404.md
Expected behavior
custom 404.md page is displayed.
System Info
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: