diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2024-11-05 21:23:51 +0100 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2024-11-05 21:23:51 +0100 |
commit | 16d9f3a07c37a5e741c185be36077e7d0523c985 (patch) | |
tree | 464b771ad3f63c545b4cc35010a5f00500f4b6b5 /lib/DBInfoscreen | |
parent | b7ff69b93a2f5bf5a0b0f714e7a8f53abf0dc776 (diff) |
redirect_to_station: remove empty hafas/efa parameters in efa/hafas mode
Diffstat (limited to 'lib/DBInfoscreen')
-rw-r--r-- | lib/DBInfoscreen/Controller/Stationboard.pm | 3 |
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 ( |