From 802bf4f9e76b6dab753c61f8f9b8d7ebe82ba6bb Mon Sep 17 00:00:00 2001 From: Ivan Gabaldon Date: Thu, 24 Jul 2025 14:55:04 +0200 Subject: [PATCH] [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 --- searx/webapp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: