Rename of page does not change URL

Tim Valdez asked on January 3, 2024 18:05

Custom Kentico 11 w/last hotfix MVC site using workflows.

We occasionally need to rename pages due to subject changes in lexicon. We have renamed the page in the CMS and the Title of that page and published it but the live site still shows the old hyphenated name in the URL for all children pages. I have dumped the site cache also. I find the old link text still in the NodeXML column of CMS_VersionHistory table but need an easy way to update the URL. In that page properties tab in the CMS editor the Alias Path is correct but the Name Path and Live URL entries are both showing the old names. These changes happen more often than we like so I'm looking for how to have our web editors change these in the UI rather than me going into the database every time. What am I missing here?

Recent Answers


Juraj Ondrus answered on January 4, 2024 09:31

What is the page type field setting for page name source? (sample screen shot) Are you editing the right field value?

0 votesVote for this answer Mark as a Correct answer

Tim Valdez answered on January 4, 2024 16:38

Page Name Source Field: (Use extra field)

Page Alias Source Field: (Page name)

0 votesVote for this answer Mark as a Correct answer

Tim Valdez answered on January 5, 2024 20:27 (last edited on January 5, 2024 20:27)

I guess an easier question that I have not been able to find the answer to, is what does "(Use extra field)" mean in that dropdown and where do I find that extra field in the CMS? The documentation is not specific enough and doesn't explain what that item is or does.

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on January 8, 2024 05:41 (last edited on January 8, 2024 07:24)

I just realized you wrote you are using MVC - in this case the page's URL is driven by the "URL pattern" setting of the page type - so you may want to change the value here to retrieve the page name from appropriate page field - you can use macros like {%FieldName%}

0 votesVote for this answer Mark as a Correct answer

Tim Valdez answered on January 8, 2024 17:17

Thank you for that info. The Content Page Type URL Pattern is {% DocumentUrlPath %} so is that the correct one to use?

The oddity is that the parent page was renamed and a few of the child pages actually were renamed properly and have correct URLs but a couple of the child pages do not and still show the old page name in their URLs...but all pages still display properly in a browser. I am trying to figure out why only some of the children pages got the new parent page name and not all of them.

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on January 9, 2024 05:27

DocumentURLPath column is for portal engine pages. This isn't really a good column to use. If you want to reflect the page names, you should be using values maybe form CMS_Tree table, like NodeAliasPath or, if you have multilingual site and want to have the URLs also "translated", then I would use DocumentNamePath from CMS_Document table. Maybe with DocumentName combination

0 votesVote for this answer Mark as a Correct answer

Tim Valdez answered on January 24, 2024 20:30

Well, to close this issue off, I went into Kentico database and searched for those dozen pages that were misnamed and edited the CMS_Document table and updated the DocumentNamePath and DocumentUrlPath columns and everything is now correct. Just one of those oddities in the Kentico CMS I guess...

0 votesVote for this answer Mark as a Correct answer

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