diff options
| author | Paul Braeuning <paul@paulgo.io> | 2022-04-08 10:08:51 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-08 10:08:51 +0200 |
| commit | 604d17755112b24fb408bb65f359a61e0bf4c248 (patch) | |
| tree | ac28cb9c15208987afab522451bdd5fd1b7e503c | |
| parent | f4ca9d73bedc311dffffa49b997c3afd9df4da0a (diff) | |
| parent | c7de5c043cf905460bccdaa3f224d9fd1fe6c270 (diff) | |
Merge pull request #1064 from capric98/pretty-url
fix: %2F in path will be converted to " › " in searx/webapp.py
| -rwxr-xr-x | searx/webapp.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/webapp.py b/searx/webapp.py index 18a488934..648a49ebe 100755 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -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] |