EllisLab text mark
Advanced Search
     
second url segment does not load the page properly
Posted: 07 August 2012 09:28 PM   [ Ignore ]
Avatar
Joined: 2011-07-13
140 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!

 
Posted: 08 August 2012 08:16 AM   [ Ignore ]   [ # 1 ]   [ Rating: 0 ]
Avatar
Joined: 2002-12-06
4239 posts

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

 Signature 

Get the missing EE2 owner’s manual - a complete guide to building an EE2 site.  It’s available in PDF or print.

 
Posted: 08 August 2012 08:51 AM   [ Ignore ]   [ # 2 ]   [ Rating: 0 ]
Avatar
Joined: 2011-07-13
140 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!

 
Posted: 08 August 2012 10:06 AM   [ Ignore ]   [ # 3 ]   [ Rating: 0 ]
Avatar
Joined: 2002-12-06
4239 posts

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

 Signature 

Get the missing EE2 owner’s manual - a complete guide to building an EE2 site.  It’s available in PDF or print.

 
Posted: 08 August 2012 10:14 AM   [ Ignore ]   [ # 4 ]   [ Rating: 0 ]
Avatar
Joined: 2011-07-13
140 posts

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

 
Posted: 08 August 2012 12:36 PM   [ Ignore ]   [ # 5 ]   [ Rating: 0 ]
Avatar
Joined: 2004-05-14
20504 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!