summaryrefslogtreecommitdiff
path: root/searx/webapp.py
diff options
context:
space:
mode:
authorHZH <42015599+capric98@users.noreply.github.com>2022-04-05 02:37:18 +0800
committerGitHub <noreply@github.com>2022-04-05 02:37:18 +0800
commit57a3252ff182f2091d7c708ad0bb95499421102e (patch)
tree01d1f7d6dd0406212ec947f0e1591a422e8c8c3e /searx/webapp.py
parent765504ceca4ce9e69b02b213b2f9a3036915055d (diff)
downloadsearxng-57a3252ff182f2091d7c708ad0bb95499421102e.tar.gz
searxng-57a3252ff182f2091d7c708ad0bb95499421102e.zip
Unquote path on result page.
Diffstat (limited to 'searx/webapp.py')
-rwxr-xr-xsearx/webapp.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/webapp.py b/searx/webapp.py
index 47a3c5bd2..18a488934 100755
--- a/searx/webapp.py
+++ b/searx/webapp.py
@@ -20,7 +20,7 @@ from typing import List, Dict, Iterable, Optional
import urllib
import urllib.parse
-from urllib.parse import urlencode
+from urllib.parse import urlencode, unquote
import httpx
@@ -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 = path.replace("/", " › ")
+ path = unquote(path).replace("/", " › ")
return [parsed_url.scheme + "://" + parsed_url.netloc, path]