Skip to content

Commit

Permalink
Added chain to Slug token to enable TextTokens for Autoroute configur…
Browse files Browse the repository at this point in the history
…ation.
  • Loading branch information
AndreaPiovanelli committed Feb 15, 2024
1 parent 90b104e commit 3ea9335
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public void Evaluate(EvaluateContext context) {
context.For<IContent>("Content")
// {Content.Slug}
.Token("Slug", (content => content == null ? String.Empty : _slugService.Slugify(content)))
.Chain("Slug", "Text", (content => content == null ? String.Empty : _slugService.Slugify(content)))
.Token("Path", (content => {
var autoroutePart = content.As<AutoroutePart>();
if (autoroutePart == null) {
Expand Down

0 comments on commit 3ea9335

Please sign in to comment.