hafas departures: use /s/:station rather than HAFAS station for prev/next links

This commit is contained in:
Birte Kristina Friesel 2024-04-03 12:35:24 +02:00
parent aa014a8a0b
commit 64e0ee5768
No known key found for this signature in database
GPG key ID: 19E6E524EBB177BA

View file

@ -93,7 +93,7 @@
<div class="row"> <div class="row">
<div class="col s4 center-align"> <div class="col s4 center-align">
% if ($hafas) { % if ($hafas) {
<a class="btn-small" href="<%= url_for('sstation', station => stash('station'))->query({hafas => 1, timestamp => $datetime->clone->subtract(hours => 1)->epoch}) %>"><i class="material-icons left" aria-hidden="true">chevron_left</i><span class="hide-on-small-only">früher</span></a> <a class="btn-small" href="<%= url_for('sstation', station => param('station'))->query({hafas => 1, timestamp => $datetime->clone->subtract(hours => 1)->epoch}) %>"><i class="material-icons left" aria-hidden="true">chevron_left</i><span class="hide-on-small-only">früher</span></a>
% } % }
</div> </div>
<div class="col s4 center-align"> <div class="col s4 center-align">
@ -103,7 +103,7 @@
</div> </div>
<div class="col s4 center-align"> <div class="col s4 center-align">
% if ($hafas) { % if ($hafas) {
<a class="btn-small" href="<%= url_for('sstation', station => stash('station'))->query({hafas => 1, timestamp => $datetime->clone->add(hours => 1)->epoch}) %>"><span class="hide-on-small-only">später</span><i class="material-icons right" aria-hidden="true">chevron_right</i></a> <a class="btn-small" href="<%= url_for('sstation', station => param('station'))->query({hafas => 1, timestamp => $datetime->clone->add(hours => 1)->epoch}) %>"><span class="hide-on-small-only">später</span><i class="material-icons right" aria-hidden="true">chevron_right</i></a>
% } % }
</div> </div>
</div> </div>