summaryrefslogtreecommitdiff
path: root/lib/DBInfoscreen/Controller
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-11-05 21:23:51 +0100
committerBirte Kristina Friesel <derf@finalrewind.org>2024-11-05 21:23:51 +0100
commit16d9f3a07c37a5e741c185be36077e7d0523c985 (patch)
tree464b771ad3f63c545b4cc35010a5f00500f4b6b5 /lib/DBInfoscreen/Controller
parentb7ff69b93a2f5bf5a0b0f714e7a8f53abf0dc776 (diff)
redirect_to_station: remove empty hafas/efa parameters in efa/hafas mode
Diffstat (limited to 'lib/DBInfoscreen/Controller')
-rw-r--r--lib/DBInfoscreen/Controller/Stationboard.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/DBInfoscreen/Controller/Stationboard.pm b/lib/DBInfoscreen/Controller/Stationboard.pm
index 963f8ad..ae3f1ae 100644
--- a/lib/DBInfoscreen/Controller/Stationboard.pm
+++ b/lib/DBInfoscreen/Controller/Stationboard.pm
@@ -2550,14 +2550,17 @@ sub redirect_to_station {
$self->redirect_to("/z/${input}?${params}");
}
elsif ( $params->param('efa') ) {
+ $params->remove('hafas');
$params = $params->to_string;
$self->redirect_to("/${input}?${params}");
}
elsif ( $params->param('hafas') and $params->param('hafas') ne '1' ) {
+ $params->remove('efa');
$params = $params->to_string;
$self->redirect_to("/${input}?${params}");
}
else {
+ $params->remove('efa');
my @candidates
= Travel::Status::DE::IRIS::Stations::get_station($input);
if (