this post was submitted on 03 Feb 2024
483 points (94.1% liked)

Programmer Humor

32483 readers
371 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
[–] dan@upvote.au 111 points 9 months ago* (last edited 9 months ago) (26 children)

Anyone that builds a SPA and breaks opening in new tab or history caching and back/forward nav isn't a good frontend developer (or lacks experience, which is something that's fixable!). These have been solved problems for a long time.

[–] toastal@lemmy.ml 4 points 9 months ago (4 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.

load more comments (2 replies)
load more comments (23 replies)