This project is read-only.

Incorrect sub page Url when not publish parent page

Topics: Troubleshooting
Oct 5, 2011 at 2:38 PM
Edited Oct 5, 2011 at 2:39 PM

I changed the content type "page" by add 2 parts "Containable" and "Container"
So, I created 2 pages which are the parent page and sub page.
Parent page Url is /parent

If I publish the parent page and create sub page, sub page url will be /parent/sub-page.
If not, the url will be /sub-page.

The problem is if I would like to publish the both pages on some day and need /parent/sub-page url.
I have to publish parent page.

Orchard v.

Oct 5, 2011 at 8:39 PM

It's actually a lot simpler: just use slashes in your URLs.