Internal wiki links containing non-ascii characters forcefully opening in new tab
Summary
Wiki links of the form [[name]]
with ascii-only characters have no special treatment and are opened in the same browser tab. Links containing Polish characters (for example [[aśd]]
) open in new tab.
Steps to reproduce
Add the following content to a wiki page:
[[asd]]
[[aśd]]
Example Project
https://gitlab.com/jstasiak/wiki-issue-demo/wikis/home demonstrates the issue.
What is the current bug behavior?
Some links open in new tabs.
What is the expected correct behavior?
All wiki links behave the same (open in the same tab by default).
Relevant logs and/or screenshots
This is the HTML code generated from the Markdown source:
<a href="/jstasiak/wiki-issue-demo/wikis/asd" class="gfm">asd</a>
(...)
<a href="/jstasiak/wiki-issue-demo/wikis/a%C5%9Bd" class="gfm" rel="nofollow noreferrer noopener" target="_blank">aśd</a>
It clearly shows that there's a different treatment going on.
Output of checks
This bug happens on GitLab.com
Possible fixes
Some parsing/validation issue I expect.
Edited by Jakub Stasiak