How to make route path exact? #564
Unanswered
KarolScibior
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I have a public bunch of public routes that are mounted on my root router with
auth
prefix and it looks like that:I created redirectRoute so that routes that don't match defined routes will be redirected to login and it works for routes like
/auth/some-route
, but if I try to go to url/auth/login/some-route
it goes to/auth/login
and url stays/auth/login/some-route
. I would like it to change to exact/auth/login
, but don't really know how to do that.Could anyone provide any insight for that?
Beta Was this translation helpful? Give feedback.
All reactions