Skip to content

Commit

Permalink
encode
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeAlhayek authored Nov 27, 2024
1 parent 929c146 commit 8b674b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/OrchardCore.Modules/OrchardCore.Contents/Shapes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public override ValueTask DiscoverAsync(ShapeTableBuilder builder)
displaying.Shape.Metadata.Alternates.Add("Content__" + encodedContentType);
// Content__[ContentItemId] e.g. Content-42n8364bk2azcy1yd71gnrntwf,
displaying.Shape.Metadata.Alternates.Add("Content__" + contentItem.ContentItemId);
displaying.Shape.Metadata.Alternates.Add("Content__" + contentItem.ContentItemId.EncodeAlternateElement());
// Content__[Id] e.g. Content-42,
displaying.Shape.Metadata.Alternates.Add("Content__" + contentItem.Id);
Expand All @@ -42,7 +42,7 @@ public override ValueTask DiscoverAsync(ShapeTableBuilder builder)
displaying.Shape.Metadata.Alternates.Add("Content_" + displaying.Shape.Metadata.DisplayType + "__" + encodedContentType);
// Content_[DisplayType]__[ContentItemId] e.g. Content-42n8364bk2azcy1yd71gnrntwf.Summary
displaying.Shape.Metadata.Alternates.Add("Content_" + displaying.Shape.Metadata.DisplayType + "__" + contentItem.ContentItemId);
displaying.Shape.Metadata.Alternates.Add("Content_" + displaying.Shape.Metadata.DisplayType + "__" + contentItem.ContentItemId.EncodeAlternateElement());
// Content_[DisplayType]__[Id] e.g. Content-42.Summary
displaying.Shape.Metadata.Alternates.Add("Content_" + displaying.Shape.Metadata.DisplayType + "__" + contentItem.Id);
Expand Down

0 comments on commit 8b674b4

Please sign in to comment.