This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Allow mixing localized pathnames and unknown routes #1675
Labels
You can continue the conversation there. Go to discussion →
Is your feature request related to a problem? Please describe.
We have an app that uses both localized pathnames for few static paths but rest of the routes are handled by our CMS. We handle our routes with
src/app/[locale]/[[...slug]]
app router path, but we want to define few routes in the config, eg.:but this doesn't seem to be possible, as
redirect
expects thehref
to be on of thepathnames
defined, when it should bestring | pathnames
?Describe the solution you'd like
Allow mixing localized paths and unknown routing
Describe alternatives you've considered
We've currently had to resort on using our own middleware to handle localized paths
The text was updated successfully, but these errors were encountered: