https://www.ory.sh/ logo
i

incalculable-lizard-67404

12/15/2021, 2:29 PM
Hello, I would like to redirect user to dynamic URL (with hash part) after the user clicks link in verification email. According to documentation, I have to use
after_verification_return_to
in registration flow to achieve the goal. The issue is that when redirection happens, the hash sign is not decode and stays as
%23
(while slashes are correctly decode). Example:
<http://example.com/account-verified#parameter>
encoded in URL as
http%3A%2F%<http://2Fexample.com|2Fexample.com>%2Faccount-verified%23parameter
but when user clicks the verification link, Kratos redirects the user to
<http://example.com/account-verified%23parameter>
What am I missing?
🙏 1
s

steep-lamp-91158

12/15/2021, 2:49 PM
looks like a regression of https://github.com/ory/kratos/pull/1040?
i

incalculable-lizard-67404

12/15/2021, 3:47 PM
Not sure about Kratos internals, but at first glance there is a difference between
url.ParseRequestURI
and
url.Parse
So yeah, probably regression. Should I create an issue on GitHub?
s

steep-lamp-91158

12/15/2021, 3:48 PM
yes, thank you very much
5 Views