summaryrefslogtreecommitdiff
path: root/searx/webapp.py
diff options
context:
space:
mode:
authorIvan Gabaldon <igabaldon@inetol.net>2025-07-24 14:55:04 +0200
committerGitHub <noreply@github.com>2025-07-24 14:55:04 +0200
commit802bf4f9e76b6dab753c61f8f9b8d7ebe82ba6bb (patch)
treee5bfbb47ff151df1d93b03c614ac31b03d989390 /searx/webapp.py
parent6b16a04e7e454558c2035393f622dffe5157e6ec (diff)
[fix] py: absolute static path (#5043)
The path to static should be relative (If sxng is served under "/sxng", the static route passed to the client won't be "/sxng/static/..." as expected but "/static/...") Closes https://github.com/searxng/searxng/issues/5042
Diffstat (limited to 'searx/webapp.py')
-rwxr-xr-xsearx/webapp.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/webapp.py b/searx/webapp.py
index a1a2a0469..2e1d3dea2 100755
--- a/searx/webapp.py
+++ b/searx/webapp.py
@@ -265,7 +265,7 @@ def custom_url_for(endpoint: str, **values):
if theme_filename in _STATIC_FILES:
values["filename"] = theme_filename
- return f"/static/{values['filename']}"
+ return f"static/{values['filename']}"
if endpoint == "info" and "locale" not in values: