diff --git a/templates/journey.html.ep b/templates/journey.html.ep
index 8c2177a698f992318bc12dce1757fb2efa4a153c..c13da5fc8e3b44ebed16ea80f6c06f8352ac8c58 100644
--- a/templates/journey.html.ep
+++ b/templates/journey.html.ep
@@ -218,10 +218,10 @@
% my $within = 0;
% my $at_startstop = 0;
% for my $station (@{$journey->{route}}) {
- % if ($station->[0] eq $journey->{from_name}) {
+ % if (($station->[1] and $station->[1] == $journey->{from_eva}) or $station->[0] eq $journey->{from_name}) {
% $within = 1; $at_startstop = 1;
% }
- % elsif ($station->[0] eq $journey->{to_name}) {
+ % elsif (($station->[1] and $station->[1] == $journey->{to_eva}) or $station->[0] eq $journey->{to_name}) {
% $within = 0; $at_startstop = 1;
% }
% else {
@@ -254,7 +254,7 @@
% }
% }
- % if ($station->[0] eq $journey->{from_name}) {
+ % if (($station->[1] and $station->[1] == $journey->{from_eva}) or $station->[0] eq $journey->{from_name}) {
% $before = 0;
% }