diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2023-09-10 17:09:41 +0200 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2023-09-10 17:09:41 +0200 |
commit | 4df72d5a920a9b4e7557cf2864653a6590726c4e (patch) | |
tree | 6c6c045e74d95f45523d6e32e9fde1ffc1425df1 /lib/DBInfoscreen/Controller/Stationboard.pm | |
parent | d81251419b2f6b18b3d96a14afe9163cc2ef6661 (diff) |
add hafas parameter to nav_link4.18.1
Diffstat (limited to 'lib/DBInfoscreen/Controller/Stationboard.pm')
-rw-r--r-- | lib/DBInfoscreen/Controller/Stationboard.pm | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/lib/DBInfoscreen/Controller/Stationboard.pm b/lib/DBInfoscreen/Controller/Stationboard.pm index faf7c13..6d75d2c 100644 --- a/lib/DBInfoscreen/Controller/Stationboard.pm +++ b/lib/DBInfoscreen/Controller/Stationboard.pm @@ -982,8 +982,12 @@ sub render_train { dt_now => DateTime->now( time_zone => 'Europe/Berlin' ), station_name => $station_name, nav_link => - $self->url_for( 'station', station => $station_name ) - ->query( { detailed => $self->param('detailed') } ), + $self->url_for( 'station', station => $station_name )->query( + { + detailed => $self->param('detailed'), + hafas => $self->param('hafas') + } + ), ); } )->wait; @@ -1775,8 +1779,13 @@ sub handle_result { or $template eq 'multi' ), force_mobile => ( $template eq 'app' ), - nav_link => $self->url_for( 'station', station => $station_name ) - ->query( { detailed => $self->param('detailed') } ), + nav_link => + $self->url_for( 'station', station => $station_name )->query( + { + detailed => $self->param('detailed'), + hafas => $self->param('hafas') + } + ), ); } return; |