Using notFound() in Next.js version 13.2.4 does not affect the functionality of the back button in the browser. The notFound() function simply returns a 404 status code and displays a custom 404 page when a user navigates to a non-existent page. The browser's back button will still display previous pages in the user's browsing history, regardless of whether notFound() has been used or not.
Asked: 2023-01-19 11:00:00 +0000
Seen: 1 times
Last updated: Mar 25 '22