Next.js Discord

Discord Forum

Empty page after clicking on Link in 404 page

Unanswered
California pilchard posted this in #help-forum
Open in Discord
California pilchardOP
Okay I have a super weird issue right now and after days searching a solution without success, im tired ahah. Im using next-intl (without localePrefix, in mode never), I dont know if its related to next-intl but anyway. When I go to a page that doesnt exist, like /yolo. I go the [...rest]/page.tsx which contain :
export default function CatchAllPage() {
  notFound();
}

And my not-found.tsx looks like :
export default function NotFound() {
  return (
    <main>
      Sorry something wrong
    </main>
  );
}

I have a layout.tsx with my header and a sidebar with navigations links. If I click on a Link to go at / for example (from the 404 page) if have a completely empty page... I've no idea how to fix this

0 Replies