#404 page after navigating from an external link

1 messages · Page 1 of 1 (latest)

simple gorgeBOT
#

Hi @raw plover. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:

#

Hmm, I don't know enough to give you a confident answer yet.

However, if you're experiencing issues with navigation and 404 errors in your Next.js application, it might be related to how you're handling internal navigation. According to the Next.js documentation, you should use the next/link component for internal navigation instead of regular HTML <a> tags to prevent unnecessary full-page refreshes and to enable client-side route transitions between pages. This provides a single-page app experience (source (https://nextjs.org/docs/messages/no-html-link-for-pages)).

For your specific issue with 404 errors after navigating back from an external site, it's not clear from the provided extracts what might be causing this problem. It could be related to the server configuration, routing issues, or something else entirely.

To troubleshoot this issue, you might want to check the following:

If you continue to experience issues, you may want to consult the Next.js documentation on error handling (https://nextjs.org/docs/pages/building-your-application/configuring/error-handling) and routing (https://nextjs.org/docs/routing/introduction) for more guidance.

Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: