How get params on not-found component ?
Unanswered
Long-legged ant posted this in #help-forum
Long-legged antOP
Hello, i think it's a recurent question, but i do not found good responses. So i have url with lang, like this : "/en/" "/es/", ect... I need that lang on the not-found.tsx file. I found recently that not-found don't accept params (i m using next 14). So there is an workaround using server component ? (PS : i have the lang on the html to, : <html lang=en> for exemple). Thank you !
1 Reply
American
Maybe this when it's released: https://github.com/vercel/next.js/pull/72837