Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Are there any options to always render a custom 404? #872

Closed
Mifaresss opened this issue Feb 19, 2024 · 1 comment
Closed

Are there any options to always render a custom 404? #872

Mifaresss opened this issue Feb 19, 2024 · 1 comment
Labels
enhancement New feature or request unconfirmed Needs triage.

Comments

@Mifaresss
Copy link

Is your feature request related to a problem? Please describe.

Why I should render default 404 page if pathname contains "."? I really don't understand...Is it difficult to introduce another variant?

Describe the solution you'd like

I wan't this url https://next-intl-example-app-router.vercel.app/somepage.asdf also return custom NotFound

Describe alternatives you've considered

...

@Mifaresss Mifaresss added enhancement New feature or request unconfirmed Needs triage. labels Feb 19, 2024
@amannn
Copy link
Owner

amannn commented Feb 20, 2024

You can absolutely do so in your app (see not-found.tsx), but note that you don't have a locale in this route—therefore either you have to assume one or redirect to a prefixed route.

Moving this to a discussion since it's a usage question …

Repository owner locked and limited conversation to collaborators Feb 20, 2024
@amannn amannn converted this issue into discussion #874 Feb 20, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
enhancement New feature or request unconfirmed Needs triage.
Projects
None yet
Development

No branches or pull requests

2 participants