diff options
author | 2021-05-14 21:05:59 +0100 | |
---|---|---|
committer | 2021-05-14 21:05:59 +0100 | |
commit | 2b0411cfd09466959f283e535ebe6ac566934779 (patch) | |
tree | eb69f930a9999521df9450e203e975957ac4154d | |
parent | Merge 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.
-rw-r--r-- | pydis_site/apps/redirect/views.py | 4 |
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 |