Replies: 1 comment
-
This seems closely related to #653. Some users have implemented custom middlewares and navigation APIs for this use case, so maybe that's an option for you too. I'm currently collecting use cases in #653, not sure yet if |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
We have a usecase, where we want to segment our app based on 2 personas, e.g
basic
andadvanced
user.For this we need to add a
[persona]
dynamic segment to our app.This results in the following structure ->
[locale]/[persona]/...
or[persona]/[locale]/...
. We do not want to expose thepersona
un URL, so we want to rewrite it in the middleware.I've tried some things, but couldn't get it to work with
next-intl/middleware
out of the box. Do you know if this pattern could be supported somehow, or should we pull out the code from thenext-intl/middleware
and modify it based on our needs?Beta Was this translation helpful? Give feedback.
All reactions