diff --git a/DNN Platform/Library/Entities/Urls/AdvancedFriendlyUrlProvider.cs b/DNN Platform/Library/Entities/Urls/AdvancedFriendlyUrlProvider.cs index 460dba5d95b..06475684a6a 100644 --- a/DNN Platform/Library/Entities/Urls/AdvancedFriendlyUrlProvider.cs +++ b/DNN Platform/Library/Entities/Urls/AdvancedFriendlyUrlProvider.cs @@ -230,11 +230,11 @@ internal override string FriendlyUrl(TabInfo tab, string path, string pageName, private static string AddPage(string path, string pageName) { string friendlyPath = path; - if (friendlyPath.EndsWith(pageName + "/")) + if (friendlyPath.EndsWith(pageName + "/", StringComparison.OrdinalIgnoreCase)) { friendlyPath = friendlyPath.TrimEnd('/'); } - else if (friendlyPath.EndsWith(pageName) == false) + else if (!friendlyPath.EndsWith(pageName, StringComparison.OrdinalIgnoreCase)) { if (friendlyPath.EndsWith("/")) {