summaryrefslogtreecommitdiff
path: root/httemplate/edit/process/cgp_rule-redirect_all.html
blob: 162d857c27e891038049ed6dde6fb27bbd4d0fcc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<% include('cgp_rule-simplified.html',
             'name'       => '#Redirect',
             'priority'   => 1,
             'redirect'   => 'cgp_rule-redirect_all.html',
             'conditions' => [
               ( $cgi->param('RedirHuman')
                 ? { conditionname => 'Human Generated', }
                 : ()
               ),
             ],
             'actions'    => [
               { action => ( $cgi->param('KeepToAndCc')
                               ? 'Mirror To'
                               : 'Redirect To'
                           ),
                 params => scalar($cgi->param('RedirectText')),
               },
               ( $cgi->param('RedirKeep')
                 ? ()
                 : ( { 'action' => 'Discard' } )
               ),
             ],
          )
%>