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.

Customising the CMS

Redirect to deeply nested Page


2 Posts   849 Views


15 June 2010 at 7:11am (Last edited: 15 June 2010 7:12am), Community Member, 33 Posts

Hey there,

how can i redirect from a Controller to a deeply nested Page with only its URLSegment available?

My requested pages will all have the same pattern:

I get the PageObject of my project. So far so good. But the URLSegment of my PageObject is just "project" and not "/maincategory/subcategory/project". So my redirects aint working properly.

Any suggestions?

EDIT: i'm using 2.4 with nestedURLs enabled...


15 June 2010 at 12:32pm Forum Moderator, 5511 Posts

If you have the Page object then you can call a method Link() on it which generates for you the actual nested link.