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.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Trailig Slash breaks $ThemeDir


Go to End


2 Posts   725 Views

Avatar
FloLech

Community Member, 3 Posts

16 February 2016 at 7:12am

Edited: 16/02/2016 7:32am

Hey there!
The trailing slash of the SS generated menu-link-URLs break all images on a site, that are linked using the $ThemeDir variable. When I remove the trailing slash from the URL everything works fine.
I allready tried some common debuging like empty cache and check if mod_rewrite is enabled.
Anybody got an idea how to solve this issue?

Thanks in advance ;)

Avatar
FloLech

Community Member, 3 Posts

16 February 2016 at 7:33am

The Problem was, that I did use relative paths in my template. Using Absolute ones (/$ThemeDir) solved the issue ;)