Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Problem with trailing slash

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

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

Page: 1
Go to End
Author Topic: 1284 Views
  • Fuzz10
    Avatar
    Community Member
    787 Posts

    Problem with trailing slash Link to this post

    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... ;-(

  • Fuzz10
    Avatar
    Community Member
    787 Posts

    Re: Problem with trailing slash Link to this post

    Argh...

    Fixed it. Terribly stupid on my part.

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

    1284 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.