Tabs on user/organization pages break middle click
STR
- Visit https://gitlab.com/u/sytses
- Middle click "Contributed projects" and "Personal projects" to open two new browser tabs
- Switch to the first new tab
- Switch to the second new tab
Expected results
The page in each new browser tab shows me the same thing as if I had simply left clicked the "Contributed projects" link and the "Personal projects" link, respectively.
Actual results
The two new tabs take me to https://gitlab.com/u/sytses#contributed and https://gitlab.com/u/sytses#personal, and both show the page I came from, with the "Activity" item selected.
The way to do this is to make the tab link to e.g., /u/sytses?contributed, and then on mousedown, check to see if its a simple left click and if so, intercept the click and change the DOM like you're doing now. The userpage will need a handler for the query string, to make sure the right tab shows up.