Skip to content

Commit

Permalink
Merge pull request #4911 from zyhfish/bug/issue-4910
Browse files Browse the repository at this point in the history
Fix #4910: check the page name with case insensitive.
  • Loading branch information
mitchelsellers authored Nov 12, 2021
2 parents 0703796 + 2732c0a commit e757a24
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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("/"))
{
Expand Down

0 comments on commit e757a24

Please sign in to comment.