Skip to content

Commit

Permalink
Merge pull request #11032 from vsilvar/v9/bugfix/10827_incorrect_url_…
Browse files Browse the repository at this point in the history
…when_domain_not_set

Improvement for #10845 - Changed culture comparison of domain to be case insensitive
  • Loading branch information
nikolajlauridsen authored Sep 6, 2021
2 parents baec56b + e45b7e0 commit e31dad6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Umbraco.Core/Routing/DomainUtilities.cs
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ private static bool IsBaseOf(DomainAndUri domain, Uri uri)
=> domain.Uri.EndPathWithSlash().IsBaseOf(uri);

private static bool MatchesCulture(DomainAndUri domain, string culture)
=> culture == null || domain.Culture == culture;
=> culture == null || domain.Culture.InvariantEquals(culture);

private static IReadOnlyCollection<DomainAndUri> SelectByBase(IReadOnlyCollection<DomainAndUri> domainsAndUris, Uri uri, string culture)
{
Expand Down

0 comments on commit e31dad6

Please sign in to comment.