Skip to content

Commit

Permalink
Add vanity URL redirect for Nothing Personal page [fix #14944] (#14945)
Browse files Browse the repository at this point in the history
  • Loading branch information
craigcook authored Jul 31, 2024
1 parent bf50acf commit 6ec4adb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions bedrock/firefox/redirects.py
Original file line number Diff line number Diff line change
Expand Up @@ -598,4 +598,5 @@ def mobile_app(request, *args, **kwargs):
redirect(r"^firefox/privacy/products/?$", "products.landing"),
redirect(r"^firefox/privacy/safe-passwords/?$", "firefox.features.password-manager"),
redirect(r"^firefox/privacy/book/?$", "https://support.mozilla.org/kb/how-stay-safe-web"),
redirect(r"^firefox/nothingpersonal/?$", "firefox.nothing-personal.index"),
)
2 changes: 2 additions & 0 deletions bedrock/mozorg/redirects.py
Original file line number Diff line number Diff line change
Expand Up @@ -567,4 +567,6 @@ def decider(request, **kwargs):
# redirects that don't need a lang code prefix
redirect(r"^diversity/?$", "mozorg.diversity.2022.index", locale_prefix=False),
redirect(r"^webvision/?$", "mozorg.about.webvision.summary", locale_prefix=True, prepend_locale=False),
# issue 14944
redirect(r"^nothing-?personal/?$", "firefox.nothing-personal.index"),
)
3 changes: 3 additions & 0 deletions tests/redirects/map_globalconf.py
Original file line number Diff line number Diff line change
Expand Up @@ -1301,5 +1301,8 @@
url_test("/firefox/privacy/products/", "/products/"),
url_test("/firefox/privacy/safe-passwords/", "/firefox/features/password-manager/"),
url_test("/firefox/privacy/book/", "https://support.mozilla.org/kb/how-stay-safe-web"),
# issue 14944
url_test("/{nothing-personal,nothingpersonal}/", "/firefox/nothing-personal/"),
url_test("/firefox/nothingpersonal/", "/firefox/nothing-personal/"),
)
)

0 comments on commit 6ec4adb

Please sign in to comment.