<@U04UQ68083H> can I change where users are redire...
# ory-copilot
p
@chilly-king-10285 can I change where users are redirected to on errors instead of /ui/welcome
c
A message from kapa.ai
Yes, you can change where users are redirected to on errors. In Ory Kratos, when a user-facing error occurs, the browser is redirected to the Error UI URL set by the
selfservice.flows.error.ui_url
configuration or
SELFSERVICE_FLOWS_ERROR_UI_URL
environment variable. For example, if
selfservice.flows.error.ui_url
is set to
<https://example.org/errors>
, Ory Kratos will redirect the User's Browser to
<https://example.org/errors?id=abcde>
. You can set this configuration to any URL you want your users to be redirected to in case of errors. For more details, refer to the [Ory Kratos documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-facing-errors).
p
@chilly-king-10285 can I change where users are redirected to on errors instead of /ui/welcome, how do I configure it on ory-network?
c
A message from kapa.ai
Yes, you can change where users are redirected to on errors in the Ory network. This can be done by setting the
selfservice.flows.error.ui_url
configuration or
SELFSERVICE_FLOWS_ERROR_UI_URL
environment variable. Here's how you can do it: 1. Locate your Ory Kratos configuration file. This is usually a
.yml
or
.json
file. 2. In the configuration file, find the
selfservice.flows.error.ui_url
field and set it to your desired URL. For example:
Copy code
yml selfservice:   flows:     error:       ui_url: <https://yourwebsite.com/error>
3. Save the configuration file and restart your Ory Kratos service for the changes to take effect. Alternatively, you can set the
SELFSERVICE_FLOWS_ERROR_UI_URL
environment variable in your Ory Kratos service's environment:
Copy code
bash export SELFSERVICE_FLOWS_ERROR_UI_URL=<https://yourwebsite.com/error>
Remember to replace
<https://yourwebsite.com/error>
with the actual URL where you want to redirect your users in case of errors. For more details, refer to the [Ory Kratos documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-facing-errors).
p
@polite-finland-81696 [11:43 AM] @chilly-king-10285 can I change where users are redirected to on errors instead of /ui/welcome, how do I configure it on ory-network? using ory-cli, not kratos
c
A message from kapa.ai
I'm sorry for the confusion, but based on the provided knowledge sources, there's no specific information on how to configure error redirects using the Ory CLI. The available information is about configuring redirects in general and handling user-facing errors in Ory Kratos, but not specifically about error redirects using the Ory CLI. For more detailed instructions, I would recommend checking the [Ory CLI documentation](https://www.ory.sh/docs/cli/ory-proxy#redirects) or the [Ory Kratos documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-facing-errors) for more information.