aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2021-05-14 21:05:59 +0100
committerGravatar GitHub <[email protected]>2021-05-14 21:05:59 +0100
commit2b0411cfd09466959f283e535ebe6ac566934779 (patch)
treeeb69f930a9999521df9450e203e975957ac4154d /pydis_site/apps
parentMerge pull request #488 from python-discord/vcokltfre/fix/uppercase-env (diff)
Enable permanent redirects for redirect app
After monitoring traffic ingressing and confirming redirects are working as expected, I'm happy to switch redirects from the redirect app to using 301 permanent redirect.
Diffstat (limited to 'pydis_site/apps')
-rw-r--r--pydis_site/apps/redirect/views.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/pydis_site/apps/redirect/views.py b/pydis_site/apps/redirect/views.py
index 9dc9881a..21180cdf 100644
--- a/pydis_site/apps/redirect/views.py
+++ b/pydis_site/apps/redirect/views.py
@@ -6,9 +6,7 @@ from django.views.generic import RedirectView
class CustomRedirectView(RedirectView):
"""Extended RedirectView for manual route args."""
- # We want temporary redirects for the time being, after this is running on prod and
- # stable we can enable permanent redirects.
- permanent = False
+ permanent = True
static_args = ()
prefix_redirect = False