-
-
Notifications
You must be signed in to change notification settings - Fork 964
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clicking on an old verification link redirects you to the default return url and not the return url specified with the initial verification flow #2279
Comments
This is kind-of expected. The |
@aeneasr yeah for my situation, we use the return url to brand the ui. If we don't have it, it would brand to a different ui which would confuse the user. My thoughts are that it should still redirect to the return url originally used with the verification flow or registration flow. I believe the second open (after they are verified) should use the return url and from there we can still determine if they are verified or not and decided to show them thanks for verifying or just redirect them to the login screen if they don't have a valid cookie. |
@aeneasr I've also noticed his issue with click on an old recovery link |
When 2fa is enabled it seems the return_to is also going lost when Kratos asks for the second factor. I have two different installations with latest Kratos and hydra, both behave like this: Might be related to this issue (but I didn't dig into it) |
Preflight checklist
Describe the bug
I signed up with a new account using the following queries:
return_to
andafter_verification_return_to
, which are both different to thedefault_return_to
url. Once I receive the email to verify my account and clicked on the link, I get redirected to theafter_verification_return_to
url which is expected.Now, when I go back to my email and click on the verification email again it redirects me to the
default_return_to
url.Please note I have also tested this from the normal verification service flow and it also produces the same bug which means it isn't specific to the
after_verification_return_to
url.Reproducing the bug
return_to
andafter_verification_return_to
query params.Relevant log output
No response
Relevant configuration
Version
v0.8.2-alpha.1
On which operating system are you observing this issue?
No response
In which environment are you deploying?
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: