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.

Installing SilverStripe /

Getting SilverStripe up and running on your computer and on your web server.

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

Setting the base tag


Go to End


2 Posts   1641 Views

Avatar
codemonkey88

Community Member, 24 Posts

25 September 2013 at 10:15pm

I suspect this may be a simple define somewhere, but I have searched the documentation and forums and can't seem to find what I'm after.

I have just installed silverstripe and noticed I was unable to login, I was stuck in some sort of loop. When I looked at the address bar, I noticed the uri was /websites/123reg/LinuxPackage25/ex/pe/rt/public_html/Security/login?BackURL=%2Fadmin So I checked the source code, and the base href has a similar string. So basically, I want to overide the base href somewhere. Can it be done in _config or is it more complex than that?

I'm on 2.4

Thanks

Avatar
codemonkey88

Community Member, 24 Posts

26 September 2013 at 2:07am

Found it - Director::setBaseURL("/");

Knew it would be there somewhere :)