From c067fdab9ecde8dfa4c1d897762ca38ecf22eeb9 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 24 Oct 2015 12:02:09 +0200 Subject: use stop='city stop' for !efa-backends (cause that's what the backend gets anyways) --- index.pl | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/index.pl b/index.pl index 5591d30..df3e870 100644 --- a/index.pl +++ b/index.pl @@ -590,6 +590,14 @@ get '/_redirect' => sub { $suffix = '.html'; } + if ( $city + and $params->param('backend') + and $params->param('backend') !~ m{ ^ ( efa | vrr ) }x ) + { + $stop = "$city $stop"; + $city = undef; + } + my $params_s = $params->to_string; if ($city) { -- cgit v1.2.3