Hey, we are currently using the Account Experience...
# ory-network
p
Hey, we are currently using the Account Experience as the default user interface for our self-service flows. We have now a new requirement that depending from which app users are coming, they should be redirect in different ways. For example, user 1 is coming from
foo.com
to the account experience page and should be redirected after registration/login again to
foo.com
. However, user 2 is navigating from
bar.com
to the account experience page and should be redirect after registration/login to
bar.com
again. In the Branding settings that it is only possible to specify one redirect URL per service-flow. However, it would be good to know if it is possible to define multiple redirect URLs per flow or if we need a custom UI (where can use
return_to
parameter on the API call) for this use-case.
s
you can just pass the
return_to
query parameter when starting the flow (i.e. when redirecting to the UI)
just make sure that the URI is on the allowlist
p
It worked out! Thanks for the answer.