elinks icon indicating copy to clipboard operation
elinks copied to clipboard

Newer TLDs not recognized

Open Merivuokko opened this issue 3 years ago • 5 comments

Elinks does not recognize newer Top Level Domains as such.

For example entering greenpeace.org into the goto url dialog redirects automatically to http://greenpeace.org.

But entering haskellweekly.news redirects to a file: URL, which in my case results in a "No such file or directory" error message.

I propose that Elinks adds all current Internet TLDs to its TLD list.

Merivuokko avatar Jun 09 '22 20:06 Merivuokko

It is too much work IMO. My proposition, is to make configurable default protocol. For example, if it is http, for text without protocol http:// will be prepended if file then file://, etc.

rkd77 avatar Jun 13 '22 07:06 rkd77

Added default protocol https:// . It does not work yet if you want other protocols.

rkd77 avatar Jun 14 '22 16:06 rkd77

Could the default protocol be a list? Each protocol in the list is tried in the specified order until one succeeds or there are no more protocols left.

-- Aura

Merivuokko avatar Oct 11 '22 09:10 Merivuokko

What do you mean by "succeded" here? Could you provide an use case with list of protocols?

rkd77 avatar Oct 11 '22 16:10 rkd77