summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cgi/index.pl7
1 files changed, 4 insertions, 3 deletions
diff --git a/cgi/index.pl b/cgi/index.pl
index 9fc4961..71c3def 100644
--- a/cgi/index.pl
+++ b/cgi/index.pl
@@ -109,13 +109,14 @@ get '/_redirect' => sub {
$params->remove('station');
$params->remove('via');
+ if ($params->param('mode') and $params->param('mode') eq 'multi') {
+ $params->remove('mode');
+ }
+
for my $param (qw(platforms)) {
if ( not $params->param($param) ) {
$params->remove($param);
}
- elsif ( $param eq 'mode' and $params->param($param) eq 'multi' ) {
- $params->remove($param);
- }
}
$params = $params->to_string;