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

<% base_tag %> and Anchor links


Go to End


1244 Views

Avatar
Murph86

Community Member, 2 Posts

3 December 2014 at 10:11am

Hi guys,

I'm struggling with this issue... If I have <% base_tag %> in my template, none of my anchor links work. What should be "www.mysite.com/products/#anchor" ends up as "www.mysite.com/#anchor". If I remove the <% base_tag %> then the anchors work fine, but any links to images that were added via the "Insert Media" in the text editor end up broken. Can someone explain how to fix this?