15

Happens to me always when clicking on a link with a target="_blank" attribute.

    4 days later

    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

    • laiz replied to this.

      Try to update to Version 0.99.115-beta (check for updates) and see if the problem is still there?

        Merged 3 posts from Middle-clicking a link opens the page twice.

          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 replied to this.

            laiz Orion is behaving as it should, the site wants you to open two tabs.

              11 days later

              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>
              • Vlad replied to this.
                12 days later

                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.

                  15 days later
                  No one is typing