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.

  • Skull giver
    link
    fedilink
    82 years ago

    What browser preference is this, exactly? I’m not aware of any browser having a setting to open every single link in a new tab.

    • @[email protected]
      link
      fedilink
      12 years 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.

      • @[email protected]
        link
        fedilink
        72 years 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
      • Skull giver
        link
        fedilink
        52 years ago

        As far as I can tell, there is no Javascript override in the Lemmy code for links. It will follow standard browser behaviour for post links. Whatever Firefox config settings you’ve found don’t always seem to apply, it seems.

        In the main branch of lemmy-ui there is actually a setting to open links in new tabs (by explicitly setting target to _blank on anchors), but that’s not in any release version (yet). It’s likely thst the next version (be that 0.18.5 or 0.19) will contain this setting.