summaryrefslogtreecommitdiff
path: root/searx/webapp.py
diff options
context:
space:
mode:
Diffstat (limited to 'searx/webapp.py')
-rwxr-xr-xsearx/webapp.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/searx/webapp.py b/searx/webapp.py
index e4253c6e3..f482d4a1a 100755
--- a/searx/webapp.py
+++ b/searx/webapp.py
@@ -1,8 +1,6 @@
#!/usr/bin/env python
# SPDX-License-Identifier: AGPL-3.0-or-later
-"""WebbApp
-
-"""
+"""WebApp"""
# pylint: disable=use-dict-literal
from __future__ import annotations
@@ -262,7 +260,8 @@ def custom_url_for(endpoint: str, **values):
if theme_filename in _STATIC_FILES:
values["filename"] = theme_filename
- return f"static/{values['filename']}"
+ app_prefix = url_for("index")
+ return f"{app_prefix}static/{values['filename']}"
if endpoint == "info" and "locale" not in values: