I'm not sure if this is a bug, or there's some und...
# talk-kratos
t
I'm not sure if this is a bug, or there's some undocumented configuration; When using
{{ .VerificationURL }}
within an email template, should the URL match the value of
selfservice.flows.verification.ui_url
?
For example, if I have;
Copy code
selfservice:
    flows:
        verification:
            ui_url: <https://example.com/verification>
            enabled: true
I would expect the contents of
{{ .VerificationURL }}
to be
<https://example.com/verification?code=123456&flow=xxx>
Instead, it always contains the path
self-service
eg.
<https://example.com/self-service/verification?code=123456&flow=xxx>
b
No, that URL points to the Kratos instance, so it can handle the redirect to the UI URL.
t
If the
VerificationURL
URL points to the Kratos instance, shouldn't the URL be using the
public.base_url
for the domain? In the above example,
<http://example.com|example.com>
is our FE service, rather than Kratos.
Oh, I think I've found it;
Copy code
methods:
            link:
              enabled: true
              config:
                lifespan: 2h
                base_url: <https://example.com>
I assume that
base_url
should be the same as the Kratos URL (or just remove it completely)?
b
I think so, yes
t
I'll give that a try - thanks for the pointers 👍
That did the trick, thanks Jonas!