deletingPathExtension()
Returns a URL constructed by removing any path extension.
Declaration
func deletingPathExtension() -> URLDiscussion
If the URL has an empty path (e.g., http://www.example.com), then this function will return the URL unchanged.