diff options
| author | Bnyro <bnyro@tutanota.com> | 2025-07-26 17:58:53 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-26 17:58:53 +0200 |
| commit | 1baf3dcd1c1bfc5bf1c39122d23e4a422e7a70eb (patch) | |
| tree | c555b221d0b8589c92dd985ce3946e39bc710135 /searx/webapp.py | |
| parent | 649a8dd577b7db5549a34af6f667daf1b61ffb6b (diff) | |
[fix] webapp.py: info (and other) page(s) don't load properly (#5051)
Diffstat (limited to 'searx/webapp.py')
| -rwxr-xr-x | searx/webapp.py | 7 |
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: |