It is a simple line of code and the entire site does this or add target=“_blank” to every hyperlink, and it will do the same thing. It sucks that you have to right-click every link to open in a new tab or window and it is such a simple fix.

  • JoBo@feddit.uk
    link
    fedilink
    arrow-up
    10
    ·
    1 year ago

    Laptops don’t have middle clicks.

    Everyone knows the various workarounds. You don’t need to post them. This thread is about a problem that ought not to exist.

    • emax_gomax@lemmy.world
      link
      fedilink
      arrow-up
      17
      ·
      1 year ago

      Thats subjective. Different people have different opinions on how this should work. Making the default open in the current tab still allows you to have the alternate behaviour with ctrl+click or middle-click. The reverse does not.

      • CmdrShepard
        link
        fedilink
        English
        arrow-up
        5
        ·
        1 year ago

        A simple checkbox in the settings allows users to choose which option they’d prefer.

        • Serinus@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          1 year ago

          “just add a setting” is generally bad software design. If you have a million toggle switches, it makes it difficult to test the various combinations.

          Sometimes an option is useful enough that it’s worth adding to settings. I don’t think this is one of them. Just use middle click or Ctrl+click or back arrow.

          • JoBo@feddit.uk
            link
            fedilink
            arrow-up
            1
            ·
            1 year ago

            I found a bunch in Firefox config settings. One was so extreme that on Kbin, refreshing the feed would open a new tab. In Lemmy, nope, didn’t work.

            • cley_faye@lemmy.world
              link
              fedilink
              arrow-up
              6
              ·
              1 year ago

              Calling BS on that. There is nothing in lemmy’s link that would force opening in the same tab. Proof:

              • there is nothing preventing middle-click/shift-click/context menu from actually working as intended
              • there is nothing on the a elements related to that, anyone can see it on every page
    • Deebster@lemmy.ml
      link
      fedilink
      arrow-up
      13
      ·
      1 year ago

      I think that forcing links to create new tabs world be a problem. Links working the default, normal way is a feature, not a bug.

      • JoBo@feddit.uk
        link
        fedilink
        arrow-up
        4
        ·
        1 year ago

        Links opening in new tabs is the default normal way. Most sites don’t send you off their site by default, for obvious reasons. And most feeds won’t lose your place in the feed by default, for equally obvious reasons.

    • cley_faye@lemmy.world
      link
      fedilink
      arrow-up
      7
      ·
      1 year ago

      Please tell me how to open a link with target=_blank in the same tab if I want to.

      Or, maybe you think that the problem should not exist because you think your opinion is everyone’s?

    • Kissaki@feddit.de
      link
      fedilink
      English
      arrow-up
      6
      ·
      edit-2
      1 year ago

      Everyone knows the various workarounds.

      You have no idea what “everyone” knows. Many - and I’m certain most - don’t.

      • JoBo@feddit.uk
        link
        fedilink
        arrow-up
        2
        ·
        1 year ago

        Mine doesn’t but I’ve found an option to switch three-finger click to middle mouse button. Thanks.

      • JoBo@feddit.uk
        link
        fedilink
        arrow-up
        4
        ·
        edit-2
        1 year ago

        So now I need to buy a mouse and sit at a desk in order to use Lemmy?

        C’mon. No other site behaves like this. It needs to be fixed.

        • CrayonRosary@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          edit-2
          1 year ago

          “To own a mouse, one must first buy a mouse.”

          • Carl Sagan

          Once you’ve crawled under that hurdle, you buy a hard mouse pad. Mine’s steel covered with a thin layer of plastic. Works great on the arm of a couch or just on a pillow.

          Now you can play first person shooters on the couch! Without the horrors of a controller.

          Navigating the web is easier. Everything is easier! It’s dreamy. Give it a try sometime.

    • TheGreenGolem@lemm.ee
      link
      fedilink
      arrow-up
      5
      ·
      edit-2
      1 year ago

      Ctrl + Click

      But yeah, it’s odd.

      The worst is fucking Jira. Why on Earth would I want to navigate away from my ticketing system EVER.

    • Natanael@slrpnk.net
      link
      fedilink
      arrow-up
      4
      ·
      1 year ago

      Most laptops have gestures like triple finger tap on the mouse pad for simulated wheel click