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.

  • krogoth@lemmy.sdf.org
    link
    fedilink
    English
    arrow-up
    2
    ·
    10 months ago

    I prefer the current behaviour.

    It’s easy to open a link in a new tab without right clicking. You can middle click (Windows and Linux) or command+click (MacOS). However there’s no easy way to force a browser to open a link in the current tab if the site wants to use a new tab.

    • Otter@lemmy.ca
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      10 months ago

      There might even be discussions on it which you can vote on.

      Eventually it would be nice to have a toggle in the settings. Could keep the current behavior as the default and let users change it

    • WhipperSnapper@lemmy.ml
      link
      fedilink
      arrow-up
      1
      ·
      10 months ago

      It also has a light mode now. I know that was a drawback for some folks when it was first being mentioned.

    • JoBo@feddit.uk
      link
      fedilink
      arrow-up
      0
      arrow-down
      1
      ·
      10 months 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.

    • slampisko@czech-lemmy.eu
      link
      fedilink
      arrow-up
      0
      arrow-down
      1
      ·
      10 months ago

      Or Ctrl+Click to open in a new tab in the background, or Ctrl+Shift+Click to open in a new tab and switch to it. Regardless, I agree with OP that this should be the default.

  • Kissaki@feddit.de
    link
    fedilink
    English
    arrow-up
    1
    ·
    10 months ago

    If you force tabs to open in a new tab/window, how do you open it in the same tab/window?

    Ultimately, it is about user control and possibly accessibility.

    Depending on your input device you can open a link in a new tab directly through

    • Middle mouse click
    • Ctrl + mouse click
    • Ctrl + Enter

    The alternative or fallback is to use the context menu like you say.

    Who says they should categorically and always open in new tabs though? In what contexts? On what kind of environment behavior does that depend? Does it assume a standard single open, auto focus, close, get back to the previous page? What makes a navigate back worse?

    If you want a general, categorical solution for your preference, as long as Lemmy does not provide a setting for it, a simple browser addon could automatically adjust all links on a websites pages, or your browser may offer it.

  • mattomattic@discuss.tchncs.de
    link
    fedilink
    English
    arrow-up
    0
    ·
    10 months ago

    I really don’t mind doing right-click-new-tab. What I don’t like is, when you click back it often doesn’t take you back to where you were before. So, totally agree with the request as it would leave you at your place.