Nextjs14 not-found page does not work as expected
Unanswered
Crazy ant posted this in #help-forum
Crazy antOP
Hello, I created not-found.js page in the app folder. Now as per nextjs docs if I try to navigate to unknown page for example-> http://localhost:3000/sdfrtggh , it should redirect to custom 404 page created as not-found.js but actually it redirects to nextjs default 404 page. Could someone help me. my folder structure is as follows app-> (blog)->not-found.js. I do not want to create another layout in app directory, thats why I did not create not-found page in the app directory directly. I know it works if I create layout and not-found page in app directly. Please help