Next.js Discord

Discord Forum

Navigating to dynamic route without <Link /> gives 404

Unanswered
Tonkinese posted this in #help-forum
Open in Discord
Avatar
TonkineseOP
If I try to load /accounts/validAccountId through the browser, or after a reload, I briefly (a few ms) get the actual page, with its contents being loaded, but then get the default nextJs Not Found page rendered.

However, if I navigate to the route using a <Link /> component from within the app, the page loads fine.

Am I doing something wrong? I've attached an image of my folder structure
Image

0 Replies