Skip to content

Commit

Permalink
Fixed bug in canonical URL matching logic where AbsoluteUri was not d…
Browse files Browse the repository at this point in the history
…ecoded before comparing with the CanonicalUrl, which caused foreign languages not to match correctly.
  • Loading branch information
NightOwl888 committed Apr 5, 2013
1 parent f0e5f6f commit 5188036
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MvcSiteMapProvider/MvcSiteMapProvider/SiteMapNode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ public override string CanonicalUrl
if (!String.IsNullOrEmpty(absoluteCanonicalUrl))
{
var httpContext = mvcContextFactory.CreateHttpContext();
if (absoluteCanonicalUrl.Equals(httpContext.Request.Url.AbsoluteUri))
if (absoluteCanonicalUrl.Equals(urlPath.UrlDecode(httpContext.Request.Url.AbsoluteUri)))
{
return String.Empty;
}
Expand Down

0 comments on commit 5188036

Please sign in to comment.