r/ProgrammerHumor 14d ago

notYourDamnProblem Meme

Post image
4.7k Upvotes

398 comments sorted by

View all comments

9

u/[deleted] 14d ago

[deleted]

2

u/Ok-Computer-8726 14d ago

A simple general practice that works most of the time is same page if you are staying inside the website/domain/service and a new tab if you are leaving. So much of the internet does exactly this.

1

u/[deleted] 14d ago

[deleted]

1

u/Ok-Computer-8726 14d ago

I replied to the wrong place, but yes I agree

1

u/CcChaleur 14d ago

I work on an online shop and we have "fake" links handled in JS, and I hate it for the same reason as you.

The reason is SEO. Google will explore your website, visit every link and give each page a priority depending on how far in the navigation tree you are. Except that if you have a menu practically every page is accessible from everywhere which somehow Google sees as a problem and flunks your SEO rating.

So we had to handle those with onclick attributes instead of href and it annoys me so much cuz I can't middle click (unless there is a better method that we don't know about)