fix: %2F in path will be converted to " › "

dependabot/pip/master/sphinx-6.1.3
HZH 2 years ago committed by GitHub
parent 4135a74001
commit c7de5c043c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -434,7 +434,7 @@ def _get_enable_categories(all_categories: Iterable[str]):
def get_pretty_url(parsed_url: urllib.parse.ParseResult):
path = parsed_url.path
path = path[:-1] if len(path) > 0 and path[-1] == '/' else path
path = unquote(path).replace("/", " ")
path = unquote(path.replace("/", " "))
return [parsed_url.scheme + "://" + parsed_url.netloc, path]

Loading…
Cancel
Save