aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps/events/views
diff options
context:
space:
mode:
authorGravatar ks129 <[email protected]>2020-10-28 20:30:48 +0200
committerGravatar ks129 <[email protected]>2020-10-28 20:30:48 +0200
commit78c8a0a0afc479e681af13bd9bb2a1afed3489dc (patch)
tree1d43e1e81287a8c3009c2d557ae564502f775b45 /pydis_site/apps/events/views
parentUse URL tag instead manually writing URL (diff)
Use path converter for event page path argument
Diffstat (limited to 'pydis_site/apps/events/views')
-rw-r--r--pydis_site/apps/events/views/page.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/pydis_site/apps/events/views/page.py b/pydis_site/apps/events/views/page.py
index fe39a98c..8a99ce13 100644
--- a/pydis_site/apps/events/views/page.py
+++ b/pydis_site/apps/events/views/page.py
@@ -14,10 +14,6 @@ class PageView(View):
def get(self, request: WSGIRequest, path: str) -> HttpResponse:
"""Render event page rendering based on path."""
- # We need to get rid from trailing slash when path have this
- if path.endswith("/"):
- path = path[:-1]
-
page_path = PAGES_PATH.joinpath(path)
if page_path.exists() and page_path.is_dir():
page_path = page_path.joinpath("_index.html")