Hello, I would like to redirect user to dynamic UR...
# talk-kratos
i
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
looks like a regression of https://github.com/ory/kratos/pull/1040?
i
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
yes, thank you very much