diff options
author | Daniel Friesel <derf@finalrewind.org> | 2020-12-21 19:11:52 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2020-12-21 19:11:52 +0100 |
commit | f9d1ea47ff7a444f4468aa4fbfade1120d500066 (patch) | |
tree | 661a76f6af08c97a7b8a23d7391b908064a2287f /lib/DBInfoscreen/Controller/Stationboard.pm | |
parent | 1a6c3ad4ee00a22c684a4142784fc5e2d1a2bc26 (diff) |
keep detailed mode when following links; show train attributes in detailed mode3.8.1
Diffstat (limited to 'lib/DBInfoscreen/Controller/Stationboard.pm')
-rw-r--r-- | lib/DBInfoscreen/Controller/Stationboard.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/DBInfoscreen/Controller/Stationboard.pm b/lib/DBInfoscreen/Controller/Stationboard.pm index b168b6b..0367655 100644 --- a/lib/DBInfoscreen/Controller/Stationboard.pm +++ b/lib/DBInfoscreen/Controller/Stationboard.pm @@ -677,7 +677,8 @@ sub render_train { $self->app->train_details_db->{ $departure->{train_no} }, dt_now => DateTime->now( time_zone => 'Europe/Berlin' ), station_name => $station_name, - nav_link => '/' . $station_name, + nav_link => + $self->url_with( 'station', station => $station_name ), ); } )->wait; @@ -1236,7 +1237,7 @@ sub handle_result { or $template eq 'multi' ), force_mobile => ( $template eq 'app' ), - nav_link => '/' . $station_name, + nav_link => $self->url_with( 'station', station => $station_name ), ); } return; |