ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

second url segment does not load the page properly

August 07, 2012 9:28pm

Subscribe [2]
  • #1 / Aug 07, 2012 9:28pm

    EnergyFreak

    102 posts

    Hi,

    As soon as my url segment has more than one segment, the page loads without any formatting, it seems like it’s not getting the css and the javascript like the first segment. Is this a bug? It’s the fist time I encounter this. I don’t think it has anything to do with my index.php. Although I did remove index.php from my urls using the tutorial from the user guide.

    Thanks!

  • #2 / Aug 08, 2012 8:16am

    Boyink!

    5011 posts

    How have you setup the paths to the css and js?

  • #3 / Aug 08, 2012 8:51am

    EnergyFreak

    102 posts

    Hi,

    This made me think, so I checked the paths and I needed to add that extra “/” in front of my path. It’s weird that it works fine for the main pages, but breaks on the second segment url. Anyway, now it works.

    Thanks!

  • #4 / Aug 08, 2012 10:06am

    Boyink!

    5011 posts

    I’ve always used the {site_url} variable in paths so they render out with a full path.  Seems more reliable.

  • #5 / Aug 08, 2012 10:14am

    EnergyFreak

    102 posts

    Ya I couldn’t agree more, I think I will incorporate that in my paths.

  • #6 / Aug 08, 2012 12:36pm

    Lisa Wess

    20502 posts

    Thank you for helping out, Mike!

    EnergyFreak - I’m glad you got this sorted out.  If anything else comes up please do let us know.  Thank you!

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases