Skip to content

Commit

Permalink
OK gallery to redirect as well
Browse files Browse the repository at this point in the history
  • Loading branch information
Almad committed Jan 5, 2025
1 parent 06ab4d6 commit 6657c24
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ddcz/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@
RedirectView.as_view(url=f"{settings.PHOTOGALLERY_MEDIA_ROOT_URL}%(file)s"),
name="redirect-photogallery",
),
re_path(
r"^galerie/(?P<file>.+)$",
RedirectView.as_view(url=f"{settings.PHOTOGALLERY_MEDIA_ROOT_URL}%(file)s"),
name="redirect-gallery",
),
# It's gone, Dave
re_path(r"^(moudrasova|img|static|skiny|chat)/", RedirectView.as_view()),
### Common pages for bots etc.
Expand Down

0 comments on commit 6657c24

Please sign in to comment.