Skip to content

Commit

Permalink
Update /truecolors/ vanity redirects to point directly to /firefox/
Browse files Browse the repository at this point in the history
  • Loading branch information
Soumya0803 authored and alexgibson committed Dec 12, 2023
1 parent 857045f commit b023ba3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 25 deletions.
12 changes: 1 addition & 11 deletions bedrock/mozorg/redirects.py
Original file line number Diff line number Diff line change
Expand Up @@ -541,17 +541,7 @@ def decider(request, **kwargs):
# Issue 9984
redirect(r"^/about/legal/fraud-report/?$", "/about/legal/defend-mozilla-trademarks/"),
# Issue 11204
redirect(
r"^(truecolou?rs|turningred)/?$",
"https://truecolors.firefox.com/",
merge_query=True,
query={
"utm_campaign": "firefox-disney-us",
"utm_medium": "web",
"utm_source": "redirect",
"utm_content": "mozilla.org-turningred",
},
),
redirect(r"^(truecolou?rs|turningred)/?$", "firefox"),
# Issue 11991
redirect(r"^transparency/?$", "mozorg.about.policy.transparency.index"),
redirect(r"^santa-locator/?$", "mozorg.santa-locator"),
Expand Down
16 changes: 2 additions & 14 deletions tests/redirects/map_globalconf.py
Original file line number Diff line number Diff line change
Expand Up @@ -1182,24 +1182,12 @@
# issue 12156
url_test("/privacy/{mozilla-vpn,firefox-relay}/", "/privacy/subscription-services/"),
# Issue 11204
url_test(
"/{truecolors,truecolours,turningred}/",
"https://truecolors.firefox.com/",
query={
"utm_campaign": "firefox-disney-us",
"utm_medium": "web",
"utm_source": "redirect",
"utm_content": "mozilla.org-turningred",
},
),
url_test("/{truecolors,truecolours,turningred}/", "/firefox/"),
url_test(
"/{truecolors,truecolours,turningred}/?utm_source=dude",
"https://truecolors.firefox.com/",
"/firefox/",
query={
"utm_campaign": "firefox-disney-us",
"utm_medium": "web",
"utm_source": "dude",
"utm_content": "mozilla.org-turningred",
},
),
# Issue 11991
Expand Down

0 comments on commit b023ba3

Please sign in to comment.