Skip to content

Commit

Permalink
Permanent pt-BR redirect (#6856)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheoChevalier authored Jun 14, 2021
1 parent 245352b commit 600901e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion network-api/networkapi/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -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<rest>.*)', RedirectView.as_view(url='/pt-BR/%(rest)s', query_string=True)),
re_path(r'^pt/(?P<rest>.*)', RedirectView.as_view(url='/pt-BR/%(rest)s', query_string=True, permanent=True)),
]))

# Anything that needs to respect the localised
Expand Down

0 comments on commit 600901e

Please sign in to comment.