brown-puzzle-hq / bph-site

1 stars 0 forks source link

`redirect("/404")` instead of `notFound()` #160

Open qiaochloe opened 1 week ago

qiaochloe commented 1 week ago

notFound() doesn't consistently show one single 404 page. It sometimes uses the default Next.js 404 page and sometimes the custom not-found.tsx page.

These pages are also affected by parent layouts. I want to keep CSS in layouts to the bare minimum but am unable to remove them right now without breaking changes.

We're stuck with redirect("/404"), which changes the URL, until we resolve this.