[fix] webapp.py: info (and other) page(s) don't load properly (#5051)

This commit is contained in:
Bnyro 2025-07-26 17:58:53 +02:00 committed by GitHub
parent 649a8dd577
commit 1baf3dcd1c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,8 +1,6 @@
#!/usr/bin/env python #!/usr/bin/env python
# SPDX-License-Identifier: AGPL-3.0-or-later # SPDX-License-Identifier: AGPL-3.0-or-later
"""WebbApp """WebApp"""
"""
# pylint: disable=use-dict-literal # pylint: disable=use-dict-literal
from __future__ import annotations from __future__ import annotations
@ -262,7 +260,8 @@ def custom_url_for(endpoint: str, **values):
if theme_filename in _STATIC_FILES: if theme_filename in _STATIC_FILES:
values["filename"] = theme_filename 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: if endpoint == "info" and "locale" not in values: