diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2024-03-27 18:20:48 +0100 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2024-03-27 18:20:48 +0100 |
commit | 1d9f62e14a7da11fa51e04854efbc6d5fd72a6ac (patch) | |
tree | 629a47f9af3bc68adffb43d03055bbf20cb9e09e /lib/DBInfoscreen | |
parent | 401eafc3c06ec4139c49a0bb1f804e0c4eb6fd28 (diff) |
redir / multiple choice: keep non-default HAFAS backend
Diffstat (limited to 'lib/DBInfoscreen')
-rw-r--r-- | lib/DBInfoscreen/Controller/Stationboard.pm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/DBInfoscreen/Controller/Stationboard.pm b/lib/DBInfoscreen/Controller/Stationboard.pm index 8d450f2..757790d 100644 --- a/lib/DBInfoscreen/Controller/Stationboard.pm +++ b/lib/DBInfoscreen/Controller/Stationboard.pm @@ -1908,6 +1908,10 @@ sub redirect_to_station { $params = $params->to_string; $self->redirect_to("/z/${input}?${params}"); } + elsif ( $params->param('hafas') and $params->param('hafas') ne '1' ) { + $params = $params->to_string; + $self->redirect_to("/${input}?${params}"); + } else { my @candidates = Travel::Status::DE::IRIS::Stations::get_station($input); |