]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1513644 - Redirect removed forms to proper destination whenever possible
authorKohei Yoshino <kohei.yoshino@gmail.com>
Wed, 29 May 2019 14:30:50 +0000 (10:30 -0400)
committerGitHub <noreply@github.com>
Wed, 29 May 2019 14:30:50 +0000 (10:30 -0400)
extensions/BMO/Extension.pm

index 50dba3d70e60def8487f81330351629464cf50be..dbab0e5c66b68e0e02e088d6cdb00689aebbaf0c 100644 (file)
@@ -2957,6 +2957,13 @@ sub app_startup {
       [REWRITE_client_bounty => qr{form[\.:]client[\.:]bounty}])
     ->to(
     'CGI#enter_bug_cgi' => {'product' => 'Firefox', 'format' => 'client-bounty'});
+
+  # Redirects to external forms
+  $r->any( '/:REWRITE_dev_engagement_event' =>
+    [ REWRITE_dev_engagement_event => qr{form[\.:]dev[\.\-:]engagement[\.\-\:]event} ]
+    => sub { my $c = shift; $c->redirect_to('https://mzl.la/devevents'); });
+  $r->any( '/:REWRITE_ipc' => [ REWRITE_ipc => qr{form[\.:](?:ipc|IPC)} ]
+    => sub { my $c = shift; $c->redirect_to('https://mzl.la/snippet-submit-form'); });
 }
 
 __PACKAGE__->NAME;