From 16d9f3a07c37a5e741c185be36077e7d0523c985 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Tue, 5 Nov 2024 21:23:51 +0100 Subject: redirect_to_station: remove empty hafas/efa parameters in efa/hafas mode --- lib/DBInfoscreen/Controller/Stationboard.pm | 3 +++ 1 file changed, 3 insertions(+) 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 ( -- cgit v1.2.3