aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraltaf-creator <dev@altafcreator.com>2026-09-20 01:01:22 +0800
committeraltaf-creator <dev@altafcreator.com>2026-09-20 01:01:22 +0800
commitbf8ad6ef77cb544aa684aa11212da070c880e7d9 (patch)
tree7d9ef429c56271ac40670e71b3bf1964a96e6dc9
parent96ba97449dc9e3e0ed85c6e83fb61f6d7522a1b8 (diff)
fix incorrect /videos/XXXX without trailing slash redirectHEADmaster
-rw-r--r--main.py2
-rw-r--r--www/projects/index.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/main.py b/main.py
index 78074cc..ea6e46d 100644
--- a/main.py
+++ b/main.py
@@ -115,7 +115,7 @@ def video_page(video_name: str):
@app.get("/videos/{video_name}", include_in_schema=False)
def video_page_redirect(video_name: str):
return fastapi.responses.RedirectResponse(
- url=f"/video/{video_name}/",
+ url=f"/videos/{video_name}/",
status_code=301
)
diff --git a/www/projects/index.html b/www/projects/index.html
index fc9095a..de4ebd0 100644
--- a/www/projects/index.html
+++ b/www/projects/index.html
@@ -383,7 +383,7 @@
<div class="video-gallery-card">
<div>
<img src="/assets/images/video-hero/eid2026.png" alt="">
- <a href="/videos/eid2026" class="video-play-cover">⏵</a>
+ <a href="/videos/eid2026/" class="video-play-cover">⏵</a>
</div>
<div class="video-gallery-card-text flex-container flex-container-normal flex-container-dynamicwrap flex-spacebetween flex-center gap">
<a href="/videos/eid2026/" class="link monospaced">A message for this Eid</a>