Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This story has a bunch of internal hyperlinks, but none pointing at the actual product. To save a Google: https://tophat.com

An aside: why is news on the web still so bad at this? Presumably because sites are incentivised to not let people leave through an external link? Is there a way to incentivise better linking?



Opening links in a new tab with the target="_blank" attribute in your <a> html tag? Keeps the user on the main site in a different tab, and when they close out the new tabs page, they are kicked back into the original site.


Warning: Always add rel="noopener noreferrer" if you use target="_blank". Otherwise the target site could redirect the main site to a phishing page or worse.


One big problem is that links die. Surprisingly often.

So five year old articles will be full of dead links that need to be cleaned up.

Bloomberg obviously doesn't want to deal with that, so the simple fix is to avoid linking to sites you don't control.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: