mirror of
https://github.com/searxng/searxng.git
synced 2024-12-23 09:46:31 +00:00
fix: %2F in path will be converted to " › "
This commit is contained in:
parent
4135a74001
commit
c7de5c043c
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue