From 6ac67d8913d550ac767c74c2b8a15099c88771eb Mon Sep 17 00:00:00 2001 From: ava3a13 Date: Mon, 14 Oct 2024 00:41:16 +0400 Subject: [PATCH] fix: use GetAbsolutePathDecoded instead of AbsolutePath in GetContentRoute --- src/Umbraco.Cms.Api.Delivery/Services/RoutingServiceBase.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Umbraco.Cms.Api.Delivery/Services/RoutingServiceBase.cs b/src/Umbraco.Cms.Api.Delivery/Services/RoutingServiceBase.cs index 4a05521b22b2..cef606708f30 100644 --- a/src/Umbraco.Cms.Api.Delivery/Services/RoutingServiceBase.cs +++ b/src/Umbraco.Cms.Api.Delivery/Services/RoutingServiceBase.cs @@ -36,7 +36,7 @@ protected Uri GetDefaultRequestUri(string requestedPath) } protected static string GetContentRoute(DomainAndUri domainAndUri, Uri contentRoute) - => $"{domainAndUri.ContentId}{DomainUtilities.PathRelativeToDomain(domainAndUri.Uri, contentRoute.AbsolutePath)}"; + => $"{domainAndUri.ContentId}{DomainUtilities.PathRelativeToDomain(domainAndUri.Uri, contentRoute.GetAbsolutePathDecoded())}"; protected DomainAndUri? GetDomainAndUriForRoute(Uri contentUrl) {