Fix: landing.html wieder unter /info (PWA start_url=/ braucht index.html), Demo-Video, Canonical fix
This commit is contained in:
parent
94abe79acc
commit
7441d4627e
2 changed files with 4 additions and 4 deletions
|
|
@ -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"})
|
||||
|
||||
|
||||
# ------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue