App crashes on browser native back/forward button from project pages
Author: hw-workshopCreated Jul 17, 2026Updated Sep 5, 2026
When navigating to a project page via an in-app link and then pressing the browser native back or forward button, the app crashes showing "An unexpected error occurred" with a minified stack trace. All in-app navigation buttons work correctly. The issue only occurs with the browser native back/forward buttons. Route setup: javascript ProjectDetail uses: javascriptconst [matched, params] = useRoute<{ slug: string }>("/projects/:slug"); const [, setLocation] = useLocation(); Any help would be greatly appreciated.
Source: molefrog/wouter