Comment out JSDELIVR_URL replacement in render function to prevent URL rewriting

This commit is contained in:
hlohaus
2025-09-11 22:59:04 +02:00
parent d7375d4c6c
commit 0804d6836a

View File

@@ -66,7 +66,7 @@ def render(filename = "home", download_url: str = GITHUB_URL):
html = response.text html = response.text
html = html.replace("../dist/", f"dist/") html = html.replace("../dist/", f"dist/")
html = html.replace("\"dist/", f"\"{STATIC_URL}dist/") html = html.replace("\"dist/", f"\"{STATIC_URL}dist/")
html = html.replace(JSDELIVR_URL, "/") # html = html.replace(JSDELIVR_URL, "/")
html = html.replace("{{ v }}", latest_version) html = html.replace("{{ v }}", latest_version)
if is_temp: if is_temp:
return html return html