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.
This feature was requested a while ago and the main Lemmy dev disagreed with it. I sort of agree (they’re just links, every browser has quick ways to open links in new tabs, there are alternative frontends that do it if you want to, etc.) but who knows if their position on the topic changed.
You could also ask your friendly Lemmy server admins if it’s possible to add this patch to your server if upstream Lemmy doesn’t want to do it.
You can use middle click to open sites in a different tab
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.
I’m aware of this and do this but its annoying when it could just open a new link away from Lemmy because so much of being on a lemmy instance for some reason involves me keeping Lemmy in one tab so I stay logged in… because if I leave… then I have to sign back in again.
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.
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.
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.
Everyone knows the various workarounds.
You have no idea what “everyone” knows. Many - and I’m certain most - don’t.
My laptop has middle click on the touchpad
Mine doesn’t but I’ve found an option to switch three-finger click to middle mouse button. Thanks.
This thread is about a problem that ought not to exist.
Exactly
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.
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.
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.
Just hit ctrl+w after clicking the link. That will close the current tab.
Web apps should not override the configured behavior of browsers.
That they are allowed/capable to, is beyound me. That starts with font size and ends with viewport-width.
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.
target=_blank overrides the default behavior. If you want it in a new tab you can always do that, but if you do not there is no way to open it in the current window. Your browser shouldn’t do anything you don’t expect it to do. If you want all links to open in a new tab, there’s a setting for that in your browser.
How do I get all links on a specific website to open a new tab?
easiest way is to middle click them
Lemmy overrides that setting. It works everywhere but here and it is irritating as hell.
I wrote a userscript for old.lemmy.world to make the header floaty and to force links into a new tab.
It’s not completely perfect, but it’s increased my QOL and I’d hate to go back.
It won’t work on the default site, of course.
Let me know if you want it, it’s short enough to just paste in a reply.
Alexandrite opens external links in new tabs.
If you can, contribute to the code. You can do a pull request if you want.
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
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.
Middle click (or command-click on Mac) will also open in a new tab in basically every browser.
deleted by creator
There’s browser addons in the meantime. [email protected]
The answer is because its version 0.18