From 6ff52e851842f635dee057c21b9ac848bfcb43bf Mon Sep 17 00:00:00 2001
From: Rob Hudson
Date: Mon, 17 Jun 2024 16:44:51 -0700
Subject: [PATCH] Update redirects that use anchors
---
bedrock/firefox/redirects.py | 22 +++++++++----------
.../includes/download-unsupported.html | 2 +-
tests/redirects/map_globalconf.py | 4 ++--
3 files changed, 14 insertions(+), 14 deletions(-)
diff --git a/bedrock/firefox/redirects.py b/bedrock/firefox/redirects.py
index b56577029e0..2bc485d6194 100644
--- a/bedrock/firefox/redirects.py
+++ b/bedrock/firefox/redirects.py
@@ -56,14 +56,14 @@ def mobile_app(request, *args, **kwargs):
redirectpatterns = (
# overrides
# issue 8096
- redirect(r"^firefox/beta/all/?$", "firefox.all", anchor="product-desktop-beta"),
- redirect(r"^firefox/developer/all/?$", "firefox.all", anchor="product-desktop-developer"),
- redirect(r"^firefox/aurora/all/?$", "firefox.all", anchor="product-desktop-developer"),
- redirect(r"^firefox/nightly/all/?$", "firefox.all", anchor="product-desktop-nightly"),
- redirect(r"^firefox/organizations/all/?$", "firefox.all", anchor="product-desktop-esr"),
- redirect(r"^firefox/android/all/?$", "firefox.all", anchor="product-android-release"),
- redirect(r"^firefox/android/beta/all/?$", "firefox.all", anchor="product-android-beta"),
- redirect(r"^firefox/android/nightly/all/?$", "firefox.all", anchor="product-android-nightly"),
+ redirect(r"^firefox/beta/all/?$", "firefox.all.platforms", to_args=["desktop-beta"]),
+ redirect(r"^firefox/developer/all/?$", "firefox.all.platforms", to_args=["desktop-developer"]),
+ redirect(r"^firefox/aurora/all/?$", "firefox.all.platforms", to_args=["desktop-developer"]),
+ redirect(r"^firefox/nightly/all/?$", "firefox.all.platforms", to_args=["desktop-nightly"]),
+ redirect(r"^firefox/organizations/all/?$", "firefox.all.platforms", to_args=["desktop-esr"]),
+ redirect(r"^firefox/android/all/?$", "firefox.all.platforms", to_args=["android-release"]),
+ redirect(r"^firefox/android/beta/all/?$", "firefox.all.platforms", to_args=["android-beta"]),
+ redirect(r"^firefox/android/nightly/all/?$", "firefox.all.platforms", to_args=["android-nightly"]),
# bug 831810 & 1142583 & 1239960, 1329931
redirect(r"^mwc/?$", "https://support.mozilla.org/products/firefox-os", re_flags="i"),
# bug 748503
@@ -114,10 +114,10 @@ def mobile_app(request, *args, **kwargs):
# bug 727561
redirect(r"^firefox/search(?:\.html)?$", "firefox.new"),
# bug 860865, 1101220, issue 8096
- redirect(r"^firefox/all-(?:beta|rc)(?:/|\.html)?$", "firefox.all", anchor="product-desktop-beta"),
- redirect(r"^firefox/all-aurora(?:/|\.html)?$", "firefox.all", anchor="product-desktop-developer"),
+ redirect(r"^firefox/all-(?:beta|rc)(?:/|\.html)?$", "firefox.all.platforms", to_args=["desktop-beta"]),
+ redirect(r"^firefox/all-aurora(?:/|\.html)?$", "firefox.all.platforms", to_args=["desktop-developer"]),
redirect(r"^firefox/aurora/(?Pall|notes|system-requirements)/?$", "/firefox/developer/{page}/"),
- redirect(r"^firefox/organizations/all\.html$", "firefox.all", anchor="product-desktop-esr"),
+ redirect(r"^firefox/organizations/all\.html$", "firefox.all.platforms", to_args=["desktop-esr"]),
# bug 729329
redirect(r"^mobile/sync", "firefox.features.sync"),
# bug 882845
diff --git a/bedrock/firefox/templates/firefox/includes/download-unsupported.html b/bedrock/firefox/templates/firefox/includes/download-unsupported.html
index 429c8d6511a..b49601a39a0 100644
--- a/bedrock/firefox/templates/firefox/includes/download-unsupported.html
+++ b/bedrock/firefox/templates/firefox/includes/download-unsupported.html
@@ -30,7 +30,7 @@
-
+