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

SS 2.4 - <% base_tag %> outputs: http://www.www.mysite.com


Go to End


3 Posts   1625 Views

Avatar
DsX

Community Member, 178 Posts

7 February 2013 at 3:04pm

In my page.ss I have a base tag.
It is outputting strange domains.
For example right now <% base_tag %> outputs: http://www.www.mysite.com
there should only be one www.

other times I have seen things like: http://www.aaa.mysite.com
here the aaa. shouldn't be.

Further I don't have a 'aaa' subdomain. However; http://www.aaa.mysite.com loads correctly, other than creating all the links with the aaa.

I am running SS2.4
Where could this be coming from, and how can I stop it???

Avatar
Willr

Forum Moderator, 5523 Posts

7 February 2013 at 8:28pm

Have you got a Director::setBaseUrl() call anywhere?

Avatar
DsX

Community Member, 178 Posts

13 February 2013 at 4:50am


Just had a look through, and no I don't seem to have one.
I have: <% base_tag %> , in my template.
It returns the odd urls, such as right now: http://pop.www.mysite.com ??