[Feature] Allow any URL scheme as a Homepage URL
Description
Both PHP and FastAPI place the restriction of either an http
or https
scheme for Homepage URLs, yet other schemes, both official ones like gopher://
and unofficial ones like finger://
, could make sense as homepages. As long as the provided URL is valid[1], I don't quite see the clear benefits of having extra restrictions.
[1] To be fair, even this is hard to decide. PHP won't allow a URL with a domain name that is longer than the DNS limit but that's because the HTTP(s) protocols rely on DNS. Other protocols may not. I think, in FastAPI, if urllib
parses it and the URL contains a non-empty scheme
and netloc
, we should allow it.