Custom URL path and child pages

Brenden Kehren asked on October 9, 2015 16:16

I have a page in the content tree like so:

/Services/Service-1
/Services/Service-2

On the Service-1 and Service-2 pages, I've set the URL path to use a custom URL like so: Image Text

And this works. Problem I have now is the child pages aren't inheriting the parent's custom path. So all my child pages look like

/Services/Service-1/Child-1
/Services/Service-1/Child-2

vs. what I'd expect/hope to see:

/Service-1/Child-1
/Service-1/Child-2

Is this what should happen or am I needing to set the URL path for all child pages too?

Recent Answers


Zachary Perry answered on October 9, 2015 21:21

I believe it only updates the children when you change the alias.

0 votesVote for this answer Mark as a Correct answer

Ilesh Mistry answered on October 13, 2015 14:32

Hi Brenden

As you are specifying a Custom URL for a page, I would expect it not to come through for the child pages as they are using the default URLs as to when they are created e.g. /Services/Service-1/Child-1 etc...

So you would most likely need to update the child pages as well.

One option you could have is to insert a Macro into the child pages to get the path you have entered for the parent Custom URL. However it just depends on how many pages you need to do this on really.

Thanks

Ilesh

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on October 13, 2015 14:41

Thanks everyone. Maybe I'm expecting too much. If you're using a custom URL why wouldn't you want the rest of your child pages to inherit that same custom aspect?

A good example would be when your navigation structure doesn't mimic exactly your content tree. Take my "services" example. I simply want a folder named "Services" so I can point my main navigation structure to that directory but I want all the URLs to not have the /services node in them. Thus I use the custom URL. Another example is I place all my "landing pages" in a folder called landing pages and I change the custom url to remove the "landing pages" node because it's not needed and the client doesn't want it. Now if my landing page has a form on it and the client want's a "thank you" page, I need to modify that thank you page as well. When I link to any one of my custom URL pages, it shows the URL correctly.

If I wanted to have it as an alias and redirect I'd do that but that's not what I want. Seems like there should be some sort of inherit property in this area.

2 votesVote for this answer Mark as a Correct answer

Quang Lai answered on October 14, 2016 16:38

Hey Brenden, this is an old post, but I'm just running into the exact same problem myself. Do you remember what you did to fix it? I'm thinking some custom event handler, but I don't see a way to target for ONLY when the document url has changed.

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on October 25, 2016 05:48

Unfortunately Quang I just dealt with it on an as-needed basis and manually changed them.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.