URL Slug

Brian Brown asked on October 4, 2022 17:46

Looks like the length of URL Slugs changed from 50 characters to 100 moving from K12 to 13. Is there a way to reduce the character limit to 50 in K13?

Recent Answers


Brenden Kehren answered on October 6, 2022 16:51

I'm sure you could go into the Modules application within Kentico and find the proper class to update that field length. Any particular reason you need to do that?

0 votesVote for this answer Mark as a Correct answer

Brian Brown answered on October 6, 2022 18:51

On our K12 site we pull in new articles from an outside source, it generated the url path but now when we pull those articles K13 the url path is much longer.

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on October 6, 2022 18:57

In your custom code to get those articles and generate them in Kentico, trim the URL path when you create those articles to 50 characters vs. modifying the OOTB functionality.

0 votesVote for this answer Mark as a Correct answer

Brian Brown answered on October 6, 2022 20:07

Aren't those Page URLS generated by the Page Name? I don't want to limit the page name, unless there's a place to set the Page URL in code.

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on October 6, 2022 20:11

You can specify those when you create the document. Or if it's done automatically, you can create the document, then update the url based on the shortened value.

0 votesVote for this answer Mark as a Correct answer

Brian Brown answered on October 11, 2022 16:26

You can specify the URL when creating the document in code? You wouldn't have an example, I'm not entirely sure which field it is.

0 votesVote for this answer Mark as a Correct answer

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