fn to_base_url(url: Url) -> Url
Helper function to create a base URL.
If the URL cannot be a base URL.