}
);
+ # In previous versions of bugzilla, an .htaccess file was used to redirect
+ # urls (often in the form of form:name or form.name) to different .cgi
+ # endpoints.
+ #
+ # Since the port to Mojolicious, we do this by adding additional routes.
+ # This is accomplished with a placeholder that we consistently prefix with
+ # REWRITE_, and as you can see below is followed by an arrayref mapping the
+ # (arbitrary) name to a regular expression and a destination.
+ #
+ # The REWRITE_ prefix is only significant because it is removed from the fake
+ # CGI environment in Bugzilla::App::CGI
$r->any('/:REWRITE_itrequest' => [REWRITE_itrequest => qr{form[\.:]itrequest}])
->to('CGI#enter_bug_cgi' =>
{'product' => 'Infrastructure & Operations', 'format' => 'itrequest'});