From c46fb42e23eeffe630542ac5deb8749c3fb2e67e Mon Sep 17 00:00:00 2001 From: patrickdemooij9 Date: Sat, 15 Jun 2024 22:32:23 +0200 Subject: [PATCH] Url decode redirect url --- .../Services/RedirectsService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SeoToolkit.Umbraco.Redirects.Core/Services/RedirectsService.cs b/src/SeoToolkit.Umbraco.Redirects.Core/Services/RedirectsService.cs index 1daf3b8..37121cf 100644 --- a/src/SeoToolkit.Umbraco.Redirects.Core/Services/RedirectsService.cs +++ b/src/SeoToolkit.Umbraco.Redirects.Core/Services/RedirectsService.cs @@ -95,8 +95,8 @@ public RedirectFindResult GetByUrl(Uri uri) var pathAndQuery = uri.PathAndQuery.CleanUrl(); var globalUrls = new List { - uri.AbsolutePath.CleanUrl(), - pathAndQuery + WebUtility.UrlDecode(uri.AbsolutePath.CleanUrl()), + WebUtility.UrlDecode(pathAndQuery) }; List domainUrls = null;