From 25d8d94fae662d2eb38e1a6b85e9b43065559cba Mon Sep 17 00:00:00 2001 From: Paul McLanahan Date: Tue, 19 Sep 2023 11:12:53 -0400 Subject: [PATCH] Add fxa redirect (#13686) --- bedrock/privacy/redirects.py | 3 +++ tests/redirects/map_globalconf.py | 2 ++ 2 files changed, 5 insertions(+) diff --git a/bedrock/privacy/redirects.py b/bedrock/privacy/redirects.py index 0427e956bb3..97e5ce27591 100644 --- a/bedrock/privacy/redirects.py +++ b/bedrock/privacy/redirects.py @@ -30,4 +30,7 @@ redirect(r"^privacy/betterweb/?$", "privacy.archive.firefox-betterweb-2023-06"), redirect(r"^privacy/firefox-fire-tv/?$", "privacy.archive.firefox-fire-tv-2023-06"), redirect(r"^privacy/firefox-reality/?$", "privacy.archive.firefox-reality-notice-2023-06"), + # temporary + # remove test in map_globalconf.py as well + redirect(r"^privacy/mozilla-accounts/?$", "privacy.notices.firefox", permanent=False, anchor="firefox-accounts"), ) diff --git a/tests/redirects/map_globalconf.py b/tests/redirects/map_globalconf.py index 296dca8e62c..d6272fa2412 100644 --- a/tests/redirects/map_globalconf.py +++ b/tests/redirects/map_globalconf.py @@ -1236,5 +1236,7 @@ # Issue 13672 url_test("/VendorDPA/", "https://assets.mozilla.net/pdf/VendorDPA.pdf"), url_test("/vendordpa/", "https://assets.mozilla.net/pdf/VendorDPA.pdf"), + # temporary + url_test("/privacy/mozilla-accounts/", "/privacy/firefox/#firefox-accounts", status_code=requests.codes.found), ) )