From f40af9388a0c2b237dac674f1da13d10a810b3a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20Chevalier?= Date: Fri, 11 Jun 2021 11:08:57 +0200 Subject: [PATCH] Permanent pt-BR redirect --- network-api/networkapi/urls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/network-api/networkapi/urls.py b/network-api/networkapi/urls.py index 1c4abdf855b..26ce46fc26b 100644 --- a/network-api/networkapi/urls.py +++ b/network-api/networkapi/urls.py @@ -72,7 +72,7 @@ path("footnotes/", include(footnotes_urls)), # redirect /pt to /pt-BR. See https://github.com/mozilla/foundation.mozilla.org/issues/5993 - re_path(r'^pt/(?P.*)', RedirectView.as_view(url='/pt-BR/%(rest)s', query_string=True)), + re_path(r'^pt/(?P.*)', RedirectView.as_view(url='/pt-BR/%(rest)s', query_string=True, permanent=True)), ])) # Anything that needs to respect the localised