Hacker News new | ask | show | jobs
by detaro 1735 days ago
probably because some broken code matched on the end of the URL, without checking if it was just the naked domain?
2 comments

Every programming language has a library to parse urls.

Please, for the love of your own mothers, people: stop pretending like you know how to parse urls like they're strings. You don't. And even if you can, you won't do it right every time.

It's been demonstrated over and over again.

Just use the already tested url facilities to give you the host/path/query parameters

I'm going to have to find a way to work "naked domain" into my lexicon today, thanks!
On second thought, I actually used it wrong above: usually, naked domain specifically refers to the registered domain, i.e. without any subdomains.