Open juliendangers opened 8 years ago
Hi @juliendangers,
scala-uri currently parses this as a path rather than a host, because it is a valid path. Example: https://who.is/whois/mydomain.com - this page could have a <a href="mydomain.com">
and browsers treat that as a path, not a host. For it to be treated as a host, you need to prepend with a scheme.
This all said, /path
and path
are different URIs, so it is a bug that the slash is prepended :)
Is it normal that urls without protocol (actually domain names) are preprended with '/' ?
I added the following test
and uri.toString = "/mydomain.com"