django-hosts icon indicating copy to clipboard operation
django-hosts copied to clipboard

No scheme URI should be possible

Open jelko opened this issue 9 years ago • 0 comments

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.

jelko avatar Jan 04 '16 18:01 jelko