OrchardCMS / Orchard

Orchard is a free, open source, community-focused Content Management System built on the ASP.NET MVC platform.
https://orchardproject.net
BSD 3-Clause "New" or "Revised" License
2.38k stars 1.12k forks source link

Adding chain to Slug token to enable slug length limit #8754

Closed AndreaPiovanelli closed 9 months ago

AndreaPiovanelli commented 9 months ago

https://github.com/OrchardCMS/Orchard/blob/90b104ed74234bdaaedf2b730166eddc66ad4d4c/src/Orchard.Web/Modules/Orchard.Autoroute/Providers/SlugTokens.cs#L43

Recently, we had an issue with a customer requiring very long content titles for some content. The autoroute path generated was so long it caused Http 400 (Bad Request) responses when navigating to that content. For this reason, we'd like to add a chain to Text tokens in order to properly configure the AutoroutePart if needed.