django-hosts
django-hosts copied to clipboard
No scheme URI should be possible
Right now it is not possible to have URIs without a scheme for relative links. Unfortunately normalize_scheme
makes sure that there is always a //
in place.
The documentation itself gives the example of <a href="//admin/dashboard/">Admin dashboard</a>
. If admin
is not a hostname/domain, this would not lead anywhere. I would suggest that admin/dashboard/
would be the better URI to build here.
I would suggest to change normalize_scheme
to accept an empty string as well.