2 Commits

Author SHA1 Message Date
Markus Heiser
84c3a832a4 [fix] false is an invalid value for wiki_url in settings.yml (#5046)
Closes: https://github.com/searxng/searxng/issues/5045
2025-07-24 17:47:09 +02:00
Ivan Gabaldon
802bf4f9e7 [fix] py: absolute static path (#5043)
The path to static should be relative (If sxng is served under "/sxng", the static route passed to the client won't be "/sxng/static/..." as expected but "/static/...")

Closes https://github.com/searxng/searxng/issues/5042
2025-07-24 14:55:04 +02:00
2 changed files with 2 additions and 2 deletions

View File

@@ -150,7 +150,7 @@ SCHEMA = {
'new_issue_url': SettingsValue(str, 'https://github.com/searxng/searxng/issues/new'),
'docs_url': SettingsValue(str, 'https://docs.searxng.org'),
'public_instances': SettingsValue((False, str), 'https://searx.space'),
'wiki_url': SettingsValue(str, 'https://github.com/searxng/searxng/wiki'),
'wiki_url': SettingsValue((False, str), 'https://github.com/searxng/searxng/wiki'),
'custom': SettingsValue(dict, {'links': {}}),
},
'search': {

View File

@@ -265,7 +265,7 @@ def custom_url_for(endpoint: str, **values):
if theme_filename in _STATIC_FILES:
values["filename"] = theme_filename
return f"/static/{values['filename']}"
return f"static/{values['filename']}"
if endpoint == "info" and "locale" not in values: