mirror of
https://github.com/searxng/searxng.git
synced 2025-07-30 16:42:22 +02:00
[fix] webapp.py: info (and other) page(s) don't load properly (#5051)
This commit is contained in:
parent
649a8dd577
commit
1baf3dcd1c
1 changed files with 3 additions and 4 deletions
|
@ -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:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue