Skip to content

Commit

Permalink
[fix bug 1221739] Add a redirect for Hello's Feedback survey links
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgibson committed Nov 13, 2015
1 parent 1199ea1 commit 1de0799
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 5 deletions.
10 changes: 10 additions & 0 deletions bedrock/firefox/redirects.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,16 @@ def firefox_mobile_faq(request, *args, **kwargs):
# bug 1121082
redirect(r'^hello/?$', 'firefox.hello'),

# Bug 1186373
redirect(r'^firefox/hello/npssurvey/?$',
'https://www.surveygizmo.com/s3/2227372/Firefox-Hello-Product-Survey',
permanent=False),

# Bug 1221739
redirect(r'^firefox/hello/feedbacksurvey/?$',
'https://www.surveygizmo.com/s3/2319863/d2b7dc4b5687',
permanent=False),

# bug 1148127
redirect(r'^products/?$', 'firefox.family.index'),

Expand Down
5 changes: 0 additions & 5 deletions bedrock/mozorg/redirects.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,6 @@ def decider(request, **kwargs):
'styleguide.communications.copy-rules'),
redirect(r'^firefox/brand/downloads/?$', 'styleguide.home'),

# Bug 1186373
redirect(r'^firefox/hello/npssurvey/?$',
'https://www.surveygizmo.com/s3/2227372/Firefox-Hello-Product-Survey',
permanent=False),

# Bug 1071318
redirect(r'^firefox/mobile/?$', 'firefox.android.index'),

Expand Down
3 changes: 3 additions & 0 deletions etc/httpd/global.conf
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,9 @@ RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?firefox/hello(/?)$ /b/$1firefox/hello$2 [PT]
# bug 1186373
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?firefox/hello/npssurvey(/?)$ /b/$1firefox/hello/npssurvey$2 [PT]

# bug 1221739
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?firefox/hello/feedbacksurvey(/?)$ /b/$1firefox/hello/feedbacksurvey$2 [PT]

# bug 1071074
RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?firefox/channel(/?)$ /b/$1firefox/channel$2 [PT]

Expand Down
10 changes: 10 additions & 0 deletions test_redirects/map_globalconf.py
Original file line number Diff line number Diff line change
Expand Up @@ -898,4 +898,14 @@

# bug 442671
url_test('/foundation/trademarks/l10n-policy/', '/foundation/trademarks/'),

# Bug 1186373
url_test('/firefox/hello/npssurvey/',
'https://www.surveygizmo.com/s3/2227372/Firefox-Hello-Product-Survey',
status_code=302),

# Bug 1221739
url_test('/firefox/hello/feedbacksurvey/',
'https://www.surveygizmo.com/s3/2319863/d2b7dc4b5687',
status_code=302),
))

0 comments on commit 1de0799

Please sign in to comment.