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


Reply


2 Posts   864 Views

Avatar
Ironcheese

Community Member, 33 Posts

15 June 2010 at 7:11am

Edited: 15/06/2010 7:12am

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:
"/maincategory/subcategory/project"

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?
Thanks

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

Avatar
Willr

Forum Moderator, 5513 Posts

15 June 2010 at 12:32pm

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