GitLab *Repository*: The Mouse Events Shift-Click / Ctrl-Click opens the target on the current browser Tab
Summary
In almost all Web Browsers, Users can control where a clicked Link should be opened:
- Control-Click to a URL opens the Link in a new Browser Tab
- Shift-Click to a URL opens the Link in a new Browser Window
Unfortunately, GitHub tries to enforde a different behavior in if Links are clicked in a GitLab Repository.
Steps to reproduce
- Open any GitHub Project
- Navigate to the Repository
- Ctrl-Click or Shift-Click to a File or Directory.
- The Target-URL is opened twice: once in the current Browser Tab and once in a new Browser Tab or a new Browser Window (depending on which modifier was used).
Example Project
Any project can be used.
What is the current bug behavior?
A Ctrl-Click or Shift-Click to a Repository File or Directory URL will open the URL twice:
- In the current Browser Tab
- In a new Browser Tab or a new Browser Window (depending on which modifier was used).
What is the expected correct behavior?
GitHub should never try to enforce to open a Ctrl-Click or Shift-Click to a URL in the Current window.
Output of checks
This bug happens on GitLab.com