There is one form of the URL class constructor that takes the filename as an argument along with the protocol and the hostname. In the filename argument, an initial slash (/) is mandatory. If this is so, why is the constructor not smart enough to add it to the filename every time it finds the slash is missing?

.