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.

  • 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@lemmy.one
      link
      fedilink
      English
      arrow-up
      5
      arrow-down
      3
      ·
      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
      link
      fedilink
      arrow-up
      2
      arrow-down
      9
      ·
      1 year ago

      It’s overriding my browser preferences. That should not happen.

        • JoBo
          link
          fedilink
          arrow-up
          1
          arrow-down
          2
          ·
          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
            arrow-down
            1
            ·
            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