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.

Archive /

Our old forums are still available as a read-only archive.

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

Problem with trailing slash


Go to End


2 Posts   1759 Views

Avatar
Fuzz10

Community Member, 791 Posts

28 November 2007 at 3:34am

Edited: 28/11/2007 9:27pm

Hi..

Spent a _LOOOT_ of time trying to figure out a problem with a new site we're working on.

www.mysite.com/about works like a charm
www.mysite.com/about/ (notice the trailing slash) doesn't work. None of the relative links to images , CSS , javascript work .. If I change them in a hard absolute URL, it's all fine.....

This is easy to see with the SS-navigation bar on the bottom on the screen. It works on the first URL (without the slash) and does not work on the second one.

Maybe this is a common (small) mistake... If so , please let me know ! :-) Getting desperate... ;-(

Avatar
Fuzz10

Community Member, 791 Posts

9 December 2007 at 3:15am

Argh...

Fixed it. Terribly stupid on my part.

Forgot to put the <% base_tag %> @ the top of the template.