I’m not so sure …
If you expect a host name and you end up clicking a file instead, that seems dangerous.
But in this case, you expect to open a file and you visit a website instead? That sounds simply annoying…
Maybe this is for browsers to deal with - if there is a collision between TLD and (file extension on this system) throw up a warning?