Skip to content

Commit

Permalink
add more link redirect and tests for redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
wen-2018 committed Jun 19, 2024
1 parent c84a025 commit 07dfbd9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bedrock/firefox/redirects.py
Original file line number Diff line number Diff line change
Expand Up @@ -602,6 +602,6 @@ def mobile_app(request, *args, **kwargs):
redirect(r"^firefox/browsers/?$", "firefox"),
# issue 14248
redirect(r"^firefox/privacy/products/?$", "products.landing"),
# issue 14248
redirect(r"^firefox/privacy/safe-passwords/?$", "firefox.features.password-manager"),
redirect(r"^firefox/privacy/book/?$", "https://support.mozilla.org/kb/how-stay-safe-web"),
)
4 changes: 4 additions & 0 deletions tests/redirects/map_globalconf.py
Original file line number Diff line number Diff line change
Expand Up @@ -1297,5 +1297,9 @@
# issue 14647
url_test("/privacy/hubs/", "/privacy/archive/mozilla-hubs/notice-2024-06/"),
url_test("/about/legal/terms/hubs/", "/privacy/archive/mozilla-hubs/tos-2024-06/"),
# issue 14248
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"),
)
)

0 comments on commit 07dfbd9

Please sign in to comment.