Fix JSDELIVR_URL replacement in render function to ensure correct path formatting

This commit is contained in:
hlohaus 2025-09-05 04:08:46 +02:00
parent 17b2526f69
commit 2030bdd62a

View file

@ -47,7 +47,7 @@ def render(filename = "home", download_url: str = DOWNLOAD_URL):
else:
response.raise_for_status()
html = response.text
html = html.replace(JSDELIVR_URL, "")
html = html.replace(JSDELIVR_URL, "/")
html = html.replace("../dist/", f"dist/")
html = html.replace("\"dist/", f"\"{STATIC_URL}dist/")
if is_temp: