From e943d24ffb9979b65cf29c048b7de984a61a3af1 Mon Sep 17 00:00:00 2001 From: ks129 <45097959+ks129@users.noreply.github.com> Date: Thu, 15 Apr 2021 16:26:30 +0300 Subject: Migrate redirections definition to not include testing args --- pydis_site/settings.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/pydis_site/settings.py b/pydis_site/settings.py index f9a5d72f..4e14ab70 100644 --- a/pydis_site/settings.py +++ b/pydis_site/settings.py @@ -293,13 +293,12 @@ EVENTS_PAGES_PATH = Path(BASE_DIR, "pydis_site", "templates", "events", "pages") CONTENT_PAGES_PATH = Path(BASE_DIR, "pydis_site", "apps", "content", "resources") # Define redirections here so these can be used for URLs and tests. -# Format: "original-path/": ("route:name", "redirection_route_name", ("testing", "args")) +# Format: "original-path/": ( +# "route:name", "redirection_route_name", ("destination", "args") +# ) REDIRECTIONS = { "pages/resources/": ("resources:index", "resources_index_redirect", ()), - "pages/resources//": ( - "resources:resources", "resources_resources_redirect", ("reading",) - ), - "pages/events/": ( - "events:index", "events_index_redirect", () - ) + "pages/resources//": ("resources:resources", "resources_resources_redirect", ()), + "pages/events/": ("events:index", "events_index_redirect", ()), + "pages/code-jams/": ("events:page", "events_code_jams_index_redirect", ("code-jams",)), } -- cgit v1.2.3