Page Alias

Srikanth Kumar asked on October 31, 2017 08:35

Hi,

I know that when we create a page, a page alias will create with the same page name. In my scenario, there are multiple page aliases are there for a page. Now the child pages of this pages are generating based on the present page alias.

I want to make the child page URLs having the name of the Parent page.

Eg: Parent Page: Products/Android Mobiles Default Page Alias when page created:Android-Mobiles Present Page Alias: New-Android-Mobiles

Now the child pages are coming like "Products/New-Android-Mobiles/childPageName"

I want it to be like "Products/Android-Mobiles/childPageName". Please Suggest.

Recent Answers


Srikanth Kumar answered on October 31, 2017 09:31

Eg: Parent Page: Products/Android Mobiles Default Page Alias when page created:Android-Mobiles Present Page Alias: New-Android-Mobiles

0 votesVote for this answer Mark as a Correct answer

David te Kloese answered on October 31, 2017 09:47

You have to make sure the main path for your parent page "Android Mobiles" is set correctly.

Check the URL properties -> path value for that page.

https://docs.kentico.com/k10/configuring-kentico/configuring-page-urls/setting-page-aliases

If set correctly the child elements will use the correct url.

1 votesVote for this answer Mark as a Correct answer

Srikanth Kumar answered on October 31, 2017 10:21

Hi, Path value is set to "/Products/Android-Mobiles". But page alias is "New-Android-Mobiles". So all child pages are having "New-Android-Mobiles" in their URLs. When i try to change the page alias to "Android-Mobiles" it is automatically changing to "Android-Mobiles-(1)". So again this is visible in child page URLs.

I want "Android-Mobiles" in child page URLs.

0 votesVote for this answer Mark as a Correct answer

Chetan Sharma answered on October 31, 2017 14:29

Srikanth, it could be because you may have a node with same name on the same directory structure level already that is why KEntico is adding (-1) suffix to the node name ath end to avoid collision.

0 votesVote for this answer Mark as a Correct answer

David te Kloese answered on October 31, 2017 22:47

As Chetan said it looks like you already have a page with that name. If you have trouble finding that page check a blog post I wrote some time ago:

http://kenticoblog.evident.nl/dtk/november-2016/how-to-find-a-page-with-page-alias-quick-tip

0 votesVote for this answer Mark as a Correct answer

Srikanth Kumar answered on November 1, 2017 10:59

Hi Chetan/David,

Thanks for your suggestion. I know why it is coming like that but now my requirement is different. Here, my scenario is Actually when we created that page, the alias name is same as page name. After that many people added new aliases to that page. So now if we try to make the page alias as same page name it is adding -(1) because that name already exists. But how can we make it to same page name again. Our client said that the child page URLs are not looking good for business because of "-(1)".

0 votesVote for this answer Mark as a Correct answer

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