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.

70 points

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.

permalink
report
reply
38 points

What I hate is when you click on what’s supposed to be an image that you’d expect to expand, but instead it’s a link because the embed isn’t supported. Then when you hit back you lose your place because the page your on isn’t saved and you’ve lost your place trying to get back.

permalink
report
parent
reply
3 points

I made this user style to help fix that problem by outlining images, and also make it so when you click an image it expands over the page at full size up to the width of the screen.

Though it’s not perfect. If the image is already black it’s hard to tell. You could change the outline color to something less common, but that looks ugly. Changing the boundary radius would probably be the best, but it’s already marked as !important so I don’t think I can change it. I’m open to suggestions on improving that part.

permalink
report
parent
reply
24 points

I was almost beginning to think I was browsing the whole web wrong by middle-click-opening a bunch of tabs, then going through them all after I’ve seen all the interesting headlines.

permalink
report
parent
reply
7 points

Ctrl+click also works

permalink
report
parent
reply
1 point

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.

permalink
report
parent
reply
57 points

You can use middle click to open sites in a different tab

permalink
report
reply
14 points

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.

permalink
report
parent
reply
4 points

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.

permalink
report
parent
reply
-19 points

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.

permalink
report
parent
reply
18 points

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.

permalink
report
parent
reply
1 point

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

permalink
report
parent
reply
-8 points

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

permalink
report
parent
reply
12 points

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.

permalink
report
parent
reply
-3 points

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.

permalink
report
parent
reply
8 points

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?

permalink
report
parent
reply
7 points
*

Everyone knows the various workarounds.

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

permalink
report
parent
reply
6 points

My laptop has middle click on the touchpad

permalink
report
parent
reply
0 points

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

permalink
report
parent
reply
5 points
*

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.

permalink
report
parent
reply
4 points

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

permalink
report
parent
reply
3 points

They do when you plug in a mouse.

permalink
report
parent
reply
0 points
*

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.

permalink
report
parent
reply
1 point
*

This thread is about a problem that ought not to exist.

Exactly

permalink
report
parent
reply
48 points

Web apps should not override the configured behavior of browsers.

permalink
report
reply
2 points

It does not. There is nothing on lemmy’s link to force link to open in the same tab. Your browser can do whatever it wants.

Maybe your confusing the behavior that a lot of site decided to implement as default (open in new tab) with a browser setting.

permalink
report
parent
reply
4 points

Maybe your confusing the behavior that a lot of site decided to implement as default (open in new tab) with a browser setting.

Try reading OP’s title and post body, then my reply again.

permalink
report
parent
reply
5 points

Dang I was so angry at people claiming the opposite it kinda blinded me into thinking you meant it the other way around. Sorry.

permalink
report
parent
reply
0 points

That they are allowed/capable to, is beyound me. That starts with font size and ends with viewport-width.

permalink
report
parent
reply
Deleted by creator
permalink
report
reply
32 points

Yeah, but no: blind and visually impaired people have troubles navigating the web because of these links that are opened in a new tab/window.

It could be an option to activate, though.

permalink
report
reply
8 points

Yeah, this is the real reason you’re not supposed to open external links in a new tab. It’s an accessibility issue.

permalink
report
parent
reply

No Stupid Questions

!nostupidquestions@lemmy.world

Create post

No such thing. Ask away!

!nostupidquestions is a community dedicated to being helpful and answering each others’ questions on various topics.

The rules for posting and commenting, besides the rules defined here for lemmy.world, are as follows:

Rules (interactive)


Rule 1- All posts must be legitimate questions. All post titles must include a question.

All posts must be legitimate questions, and all post titles must include a question. Questions that are joke or trolling questions, memes, song lyrics as title, etc. are not allowed here. See Rule 6 for all exceptions.



Rule 2- Your question subject cannot be illegal or NSFW material.

Your question subject cannot be illegal or NSFW material. You will be warned first, banned second.



Rule 3- Do not seek mental, medical and professional help here.

Do not seek mental, medical and professional help here. Breaking this rule will not get you or your post removed, but it will put you at risk, and possibly in danger.



Rule 4- No self promotion or upvote-farming of any kind.

That’s it.



Rule 5- No baiting or sealioning or promoting an agenda.

Questions which, instead of being of an innocuous nature, are specifically intended (based on reports and in the opinion of our crack moderation team) to bait users into ideological wars on charged political topics will be removed and the authors warned - or banned - depending on severity.



Rule 6- Regarding META posts and joke questions.

Provided it is about the community itself, you may post non-question posts using the [META] tag on your post title.

On fridays, you are allowed to post meme and troll questions, on the condition that it’s in text format only, and conforms with our other rules. These posts MUST include the [NSQ Friday] tag in their title.

If you post a serious question on friday and are looking only for legitimate answers, then please include the [Serious] tag on your post. Irrelevant replies will then be removed by moderators.



Rule 7- You can't intentionally annoy, mock, or harass other members.

If you intentionally annoy, mock, harass, or discriminate against any individual member, you will be removed.

Likewise, if you are a member, sympathiser or a resemblant of a movement that is known to largely hate, mock, discriminate against, and/or want to take lives of a group of people, and you were provably vocal about your hate, then you will be banned on sight.



Rule 8- All comments should try to stay relevant to their parent content.

Rule 9- Reposts from other platforms are not allowed.

Let everyone have their own content.



Rule 10- Majority of bots aren't allowed to participate here.

Credits

Our breathtaking icon was bestowed upon us by @Cevilia!

The greatest banner of all time: by @TheOneWithTheHair!

Community stats

  • 9.7K

    Monthly active users

  • 2.7K

    Posts

  • 106K

    Comments