Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Template Questions /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Hostname is being stripped from url in e-mail template

Go to End

2 Posts   680 Views


Community Member, 7 Posts

5 October 2016 at 9:13am

Edited: 05/10/2016 9:19am

I made a custom template for the Forgot Password email in SS 3.2, and in it somewhere I have this exact line:

<a href="$PasswordResetLink">$PasswordResetLink</a>

The link href attribute renders correctly, but the protocol and hostname (e.g. "http://localhost") are stripped from the text that the link surrounds.

How do I make it not do that?


Community Member, 56 Posts

24 April 2017 at 11:54pm