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.

Template Questions

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


Reply

3 Posts   626 Views

Avatar
DsX

7 February 2013 at 3:04pm Community Member, 178 Posts

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

7 February 2013 at 8:28pm Forum Moderator, 5511 Posts

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

Avatar
DsX

13 February 2013 at 4:50am Community Member, 178 Posts

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 ??