How do I seamlessly navigate to 404 pages?
Unanswered
Orinoco Crocodile posted this in #help-forum
Orinoco CrocodileOP
Currently whenever I encounter a 404 page it rerenders everything rather then smoothly navigating like any other SPA page
8 Replies
Orinoco CrocodileOP
bump
Orinoco CrocodileOP
and bump again
@Orinoco Crocodile Use
https://nextjs.org/docs/app/api-reference/functions/not-found
notFound(), if you're using app router.https://nextjs.org/docs/app/api-reference/functions/not-found
Orinoco CrocodileOP
Thats not what I was looking for - I want it to not have a full refresh when you go to a 404 page
That is official method... also are you using the latest version of nextjs as i believe they fixed this...
@riský That is official method... also are you using the latest version of nextjs as i believe they fixed this...
Orinoco CrocodileOP
In 13.5.4?
I'm one version behind - will update later
@Orinoco Crocodile I'm one version behind - will update later
that is the latest (excluding canary), but unfortunately i don't think nextjs has very good support for not found pages that you link (ie using next/link)