not-found.tsx only working at the root level not at the route level
Unanswered
Giant Chinchilla posted this in #help-forum
Giant ChinchillaOP
so i have my app folder and I have
not-found.tsx in the same layer as the root level layout.tsx and page.tsx
app/not-found.tsx
app/dash/not-found.tsx
But for some reason when i hit localhost:3000/dash/blahblah (a fake url)
i still get the root level not found.
not-found.tsx in the same layer as the root level layout.tsx and page.tsx
app/not-found.tsx
import Link from 'next/link'
export default function NotFound() {
return (
<div>
<h2>Not Found</h2>
<p>Could not find requested resource</p>
<Link href="/">Return Home</Link>
</div>
)
}app/dash/not-found.tsx
import Link from 'next/link'
export default function NotFound() {
return (
<div>
<h2>Dashboard Not Found</h2>
<p>Could not find requested resource</p>
<Link href="/">Return Home</Link>
</div>
)
}But for some reason when i hit localhost:3000/dash/blahblah (a fake url)
i still get the root level not found.