Closed aeneasr closed 1 year ago
The problem is that the registration / login links
are respecting return_to
, but only if it is in the URL available:
Instead, we should check the return_to
value from the flow itself and use that. The value is available in the flow:
So basically we just need to generate the link here
with the correct return_to value :)
There is another issue here. For OIDC registrations flows, the return_to is not respected.
When using the same OIDC flow for logins, everything works fine.
This should be fixed now https://github.com/ory/kratos-selfservice-ui-node/pull/243
Discussed in https://github.com/ory/cloud/discussions/114