kratos
kratos copied to clipboard
ReturnTo url is not copied to new flow when update flow is triggered
Preflight checklist
- [X] I could not find a solution in the existing issues, docs, nor discussions.
- [X] I agree to follow this project's Code of Conduct.
- [X] I have read and am following this repository's Contribution Guidelines.
- [X] I have joined the Ory Community Slack.
- [X] I am signed up to the Ory Security Patch Newsletter.
Ory Network Project
No response
Describe the bug
When a new flow is created the return to url is not copied over from the old flow. Is that the correct behaviour or should it be included in the newly created flow?
Reproducing the bug
- Log in using socials that uses the same email address as an identity that is already in the system.
- flow should have a return to url attached.
- You'll see the link social error message
- Login using the existing identity and you are not redirected to the return to url
Relevant log output
No response
Relevant configuration
No response
Version
v1.0.0
On which operating system are you observing this issue?
None
In which environment are you deploying?
None
Additional Context
No response
Should FromOldFlow() function not copy the return to url ? https://github.com/ory/kratos/blob/c25ddffd2270a8d0861e2fc78cd0ba26e63af4eb/selfservice/flow/login/handler.go#L245