summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2020-12-20 23:39:08 +0100
committerDaniel Friesel <derf@finalrewind.org>2020-12-20 23:39:08 +0100
commit1a6c3ad4ee00a22c684a4142784fc5e2d1a2bc26 (patch)
tree44cc28c5f67282435955431fedcfd1b8351c2a21 /templates
parent5a41f843f1d7f57237938712ac08cf5b94450749 (diff)
_train_details: forward query parameters to linked departure boards
Diffstat (limited to 'templates')
-rw-r--r--templates/_train_details.html.ep4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/_train_details.html.ep b/templates/_train_details.html.ep
index 55daae3..4b85845 100644
--- a/templates/_train_details.html.ep
+++ b/templates/_train_details.html.ep
@@ -169,7 +169,7 @@
<ul class="mroute">
% for my $stop (@{$departure->{route_pre_diff}}) {
<li>
- <a href="/<%= $stop->{name} %>#<%= $departure->{train_type} . $departure->{train_no} %>" class="
+ <a href="<%= url_with('station', station => $stop->{name}) %>" class="
% if ($stop->{isAdditional}) {
additional-stop
% }
@@ -205,7 +205,7 @@
</li>
% for my $stop (@{$departure->{route_post_diff}}) {
<li>
- <a href="/<%= $stop->{name} %>#<%= $departure->{train_type} . $departure->{train_no} %>" class="
+ <a href="<%= url_with('station', station => $stop->{name}) %>" class="
% if ($stop->{isAdditional}) {
additional-stop
% }