Skip to content

Commit

Permalink
Merge pull request #3447 from alexgibson/bug-1215633-redirect-firstru…
Browse files Browse the repository at this point in the history
…n-learnmore-to-sumo

[fix bug 1215633] Temporarily redirect /firefox/firstrun/learnmore/ to SUMO
  • Loading branch information
pmac committed Oct 19, 2015
2 parents 885bc6a + 4c346bb commit 9df05c7
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bedrock/firefox/redirects.py
Expand Up @@ -217,4 +217,8 @@ def firefox_mobile_faq(request, *args, **kwargs):
# bug 1211907
redirect(r'^firefox/independent/?$', 'firefox.new'),
redirect(r'^firefox/personal/?$', 'firefox.new'),

# bug 1215633
redirect(r'^firefox/(?:\d+\.\d+\.?(?:\d+)?\.?(?:\d+)?(?:[a|b]?)(?:\d*)(?:pre)?(?:\d)?)/firstrun/learnmore/?$',
'https://support.mozilla.org/kb/private-browsing-use-firefox-without-history', permanent=False),
)
3 changes: 3 additions & 0 deletions etc/httpd/global.conf
Expand Up @@ -372,6 +372,9 @@ RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?firefox(/(?:\d+\.\d+\.?(?:\d+)?\.?(?:\d+)?(?
# bug 1003703, 1009630
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?firefox(/.+)/firstrun/eu/?$ /$1firefox$2/firstrun/?utm_source=direct&utm_medium=none&utm_campaign=redirect&utm_content=eu-firstrun-redirect [L,R=301]

# bug 1215633
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?firefox(/(?:\d+\.\d+\.?(?:\d+)?\.?(?:\d+)?(?:[a|b]?)(?:\d*)(?:pre)?(?:\d)?))?/firstrun/learnmore(/?)$ /b/$1firefox$2/firstrun/learnmore$3 [PT]

# bug 748503
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?firefox/nightly/firstrun(.*)$ /b/$1firefox/nightly/firstrun$2 [PT]

Expand Down
5 changes: 5 additions & 0 deletions test_redirects/map_globalconf.py
Expand Up @@ -804,4 +804,9 @@
# bug 960689, 1013349, 896474
url_test('/about/legal.html', '/about/legal/'),
url_test('/about/partnerships.html', '/about/partnerships/'),

# bug 1215633
url_test('/firefox/42.0/firstrun/learnmore',
'https://support.mozilla.org/kb/private-browsing-use-firefox-without-history',
status_code=302),
))

0 comments on commit 9df05c7

Please sign in to comment.