Next.js Discord

Discord Forum

nothing re-render when go backward after notFound was rendered in same path

Unanswered
Artzeeker posted this in #help-forum
Open in Discord
I create /jobs page and have <Link href="/jobs?page=3">go to page 3</Link>. When I call notFound() in condition if (Number(page) > 2 will show not found page as expected. But when i try to go backward e.g. press browser back button, it should show previous page but what i got is nothing re-render (stay in not found page forever if path still be /jobs)

2 Replies

Hey, can you share some of code or more context? Because i do a little proof and work fine for me