gitweb: Easier adding/changing parameters to current URL
[gitweb.git] / gitweb / gitweb.perl
index abb5a7d39f701b2ad914607be48bd244439c450e..c93c546fbfa9c59c5de54d9bb9b2c788d7acf5d9 100755 (executable)
@@ -611,6 +611,15 @@ (%)
        );
        my %mapping = @mapping;
 
+       if ($params{-replay}) {
+               while (my ($name, $symbol) = each %mapping) {
+                       if (!exists $params{$name}) {
+                               # to allow for multivalued params we use arrayref form
+                               $params{$name} = [ $cgi->param($symbol) ];
+                       }
+               }
+       }
+
        $params{'project'} = $project unless exists $params{'project'};
 
        my ($use_pathinfo) = gitweb_check_feature('pathinfo');