global-not-found
Unanswered
Irish Terrier posted this in #help-forum
Irish TerrierOP
Hi! Do you know if there's a way to trigger the new experimental global-not-found page even from a [slug] page? I mean, i have
app
[slug]
page.tsx -> if from here i call notFound() the global-not-found is not called, even if i create the pages using generateStaticParams function
page.tsx
layout.tsx
global-not-found.tsx
Any ideas?
app
[slug]
page.tsx -> if from here i call notFound() the global-not-found is not called, even if i create the pages using generateStaticParams function
page.tsx
layout.tsx
global-not-found.tsx
Any ideas?
2 Replies
@Irish Terrier Hi! Do you know if there's a way to trigger the new experimental **global-not-found** page even from a [slug] page? I mean, i have
app
[slug]
page.tsx -> if from here i call notFound() the **global-not-found** is not called, even if i create the pages using **generateStaticParams** function
page.tsx
layout.tsx
global-not-found.tsx
Any ideas?
Transvaal lion
Hey, seems I may have a similar problem, have you found the solution?
Pacific sand lance
Have you enabled
experimental.globalNotFound in next.config.ts?