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.

Upgrading SilverStripe

Ask questions about upgrading SilverStripe to the latest version.

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

Hierarchical URLs missing after successful (it seems) 2.4 upgrade


Reply

3 Posts   634 Views

Avatar
AdamCGray

13 July 2010 at 8:59pm Community Member, 4 Posts

Hello,

I /think/ I've just upgraded perfectly to 2.4 (replaced code, flushed the DB with no problems, admin panel now showing 2.4.0). However, hierarchical URLs just don't seem to be happening. Visiting, say, /about-us/members gives a 404 where as /about-us and /members both work fine. Do I have to switch this on somewhere? Am I just being really thick? :)

Avatar
Willr

13 July 2010 at 10:35pm Forum Moderator, 5511 Posts

Nested urls is enabled by a static method - SiteTree::enable_nested_urls(); in your _config.php. If you upgraded you're probably missing that line. Just paste it into the _config file and run another dev/build

Avatar
AdamCGray

17 July 2010 at 1:14am Community Member, 4 Posts

Silly me. Thanks, Willr!