From 1baf3dcd1c1bfc5bf1c39122d23e4a422e7a70eb Mon Sep 17 00:00:00 2001 From: Bnyro Date: Sat, 26 Jul 2025 17:58:53 +0200 Subject: [PATCH] [fix] webapp.py: info (and other) page(s) don't load properly (#5051) --- searx/webapp.py | 7 +++---- 1 file 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: