this post was submitted on 03 Feb 2024
486 points (94.2% liked)

Programmer Humor

32483 readers
166 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] toastal@lemmy.ml 4 points 9 months ago (1 children)

Conversly a lot of static websites break new tab by incorrectly slapping target="_blank" on anchors. Luckily Lemmy doesn’t mess this up.

[–] Trarmp@feddit.nl 1 points 9 months ago (1 children)

I maintain a couple of Wordpress installations for clients, where new link targets are the same page, as you'd expect.

They still, somehow, manually check "link opens in new tab". I don't know why some of these boomers are allowed to use computers, I swear.

[–] toastal@lemmy.ml 2 points 9 months ago (1 children)

If you manage the WordPress installation, can’t you disable the ability or create/install a plugin that removes that ability? This hurts usability.

[–] Trarmp@feddit.nl 2 points 9 months ago (1 children)

I could, good point. I do disable plugins for clients so they can't beat up their own website too much.

Still, there are legitimate uses for opening a site in a new tab; e.g. when it's an external website. I don't think I should automate that, since there's a granularity in there.

[–] toastal@lemmy.ml -1 points 9 months ago* (last edited 9 months ago)

legitimate uses for opening a site in a new tab; e.g. when it's an external website

This is not a legitimate use—this breaks the default user agent behavior & completely removes the autonomy of opening in the current window (there are tons of ways to open in a new tab/window). Consider rechecking the article linked higher up the thread tree.