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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

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   1754 Views

Avatar
p0lar_bear

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?

Avatar
Lukin

Community Member, 56 Posts

24 April 2017 at 11:54pm

$BaseHref