Save Route before Redirect of Auth Middleware #1836
Answered
by
skoenfaelt
skoenfaelt
asked this question in
Q&A
-
In the Use Case a user opens the specific page /account/profile the user will redirect to /signin since he is not logged in. Is there a way to hook right before the redirect of the auth middleware, to save the requested route, so the user gets redirected after login to the requested page? |
Beta Was this translation helpful? Give feedback.
Answered by
skoenfaelt
Mar 8, 2023
Replies: 1 comment
-
Excuse me, silly question since its (partly) the default behavior. I just missed to set |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
skoenfaelt
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Excuse me, silly question since its (partly) the default behavior. I just missed to set
fullPathRedirect
to truehttps://auth.nuxtjs.org/api/options/#rewriteredirects