I am getting double tabs pretty much all the time, search something in Kagi and then two tabs open up.
Clicking a link that opens in a new tab spawns two tabs
Happens to me always when clicking on a link with a target="_blank"
attribute.
Fixed, thanks Vlad
- Edited
Steps to reproduce:
Middle click on a link on any webpage. Didnt use compatibily mode, safari only opens the page once.
EDIT: Apparently not all links get opened twice. The link i tried is on https://nixos.org "Anouncement" in the top right corner.
Expected behavior:
Open the link in a new tab once
Orion, OS version; hardware type:
Orion 0.99.114.1-beta
macOS 12.4
macbook air m1
Try to update to Version 0.99.115-beta (check for updates) and see if the problem is still there?
- Edited
vordenken
I can confirm that the https://nixos.org announcement link still opens twice on Orion Version 0.99.115-rc (WebKit 614.1.12). I haven't been able to find any other links that have this issue. Additionally, the https://nixos.org issue is present even when tabs are displayed on top.
edit: this issue also exists on Firefox so it's probably an issue on nixos' end
Vlad Could you elaborate? I tried this in other browsers (chromium) and safari - they dont behave like this. The sourcecode only shows a basic href to a new tab?
<div class="action">
<a target="_blank" href="/blog/announcements.html#nixos-22.05">Announcement</a>
</div>
- Edited
vordenken The page code has this
$(".clickable-whole").each(function () {
// Make the whole thing act as if it was clicked.
$(this).on("click", function () {
$(this).find("a, button").first()[0].click();
});
});
which is firing another click event on click which is really weird but that's what they want to do
(this is from Orion dsicord https://discord.com/channels/802933355603034132/908580964488323102/982371341246291989 )
Orion and Firefox behave correctly, Chrome and Safari don't.
Oh wow... thanks for the info!