kratos icon indicating copy to clipboard operation
kratos copied to clipboard

ReturnTo url is not copied to new flow when update flow is triggered

Open reginbald opened this issue 1 year ago • 1 comments

Preflight checklist

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

  1. 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.
  2. You'll see the link social error message
  3. 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

reginbald avatar Nov 23 '23 12:11 reginbald

Should FromOldFlow() function not copy the return to url ? https://github.com/ory/kratos/blob/c25ddffd2270a8d0861e2fc78cd0ba26e63af4eb/selfservice/flow/login/handler.go#L245

reginbald avatar Nov 23 '23 12:11 reginbald