-
Hello, I made that via a bad workaround but I think it's not a good idea.
this will open him the signing page and will keep the old URL, any better answer please? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 14 replies
-
You can handle this by having an url query called Let's say someone goes to |
Beta Was this translation helpful? Give feedback.
-
Hi @ahakem , |
Beta Was this translation helpful? Give feedback.
-
@ahakem Haven't tested yet, but this should work: On the private route, do as indicated in this issue:
Then on the login page, after successful login:
|
Beta Was this translation helpful? Give feedback.
-
Fine, I thought you were trying the not so good solution above. As I mentioned, in other frameworks you can add a property to the route and check it on the next component/page. Not sure why Next isn't using established proper solutions. |
Beta Was this translation helpful? Give feedback.
@ahakem Haven't tested yet, but this should work:
On the private route, do as indicated in this issue:
Then on the login page, after successful login: