Auth0 Home Blog Docs

Links in Lock messages rendered as text


#1

On the password reset page we’re adding

successMessage: "Lorem ipsum https://www.google.com"

The link renders as text. Why, and how can we make it render the link properly?

Using HTML to wrap the link doesn’t work. Is there documentation that explains what is / isn’t allowed?


#3

Hi there @hannes!

successMessage only accepts a String so adding a html tag would only not render it as HTML properly and rather display as plaintext only.

t’s not easy to implement it the way you want but you can “hack” the page with javascript and modify the content during runtime (DOM Manipulation). If it is to redirect users back to your app, you can use the Redirect To field in Password reset email template: https://auth0.com/docs/email/templates#change-password-confirmation-email

Hope it helps!