From 7441d4627e01f2a5783123b7c688525037b25a2d Mon Sep 17 00:00:00 2001 From: rene Date: Wed, 6 May 2026 17:41:02 +0200 Subject: [PATCH] Fix: landing.html wieder unter /info (PWA start_url=/ braucht index.html), Demo-Video, Canonical fix --- backend/main.py | 4 ++-- backend/static/landing.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/main.py b/backend/main.py index 8da77a4..e15891b 100644 --- a/backend/main.py +++ b/backend/main.py @@ -377,6 +377,7 @@ async def sitemap(): today = date.today().isoformat() urls = [ ("https://banyaro.app/", "weekly", "1.0"), + ("https://banyaro.app/info", "monthly", "0.9"), ("https://banyaro.app/presse", "monthly", "0.8"), ("https://banyaro.app/wiki/rassen", "weekly", "0.8"), ("https://banyaro.app/knigge", "monthly", "0.8"), @@ -431,8 +432,7 @@ async def sitemap(): @app.get("/info") async def info_page(): - from fastapi.responses import RedirectResponse - return RedirectResponse(url="/", status_code=301) + return FileResponse(f"{STATIC_DIR}/landing.html", headers={"Cache-Control": "max-age=3600"}) # ------------------------------------------------------------------ diff --git a/backend/static/landing.html b/backend/static/landing.html index cffd696..f5cda01 100644 --- a/backend/static/landing.html +++ b/backend/static/landing.html @@ -7,13 +7,13 @@ - + - +