summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--index.pl6
1 files changed, 5 insertions, 1 deletions
diff --git a/index.pl b/index.pl
index 225b84b..8aa48b1 100644
--- a/index.pl
+++ b/index.pl
@@ -587,7 +587,11 @@ get '/_redirect' => sub {
if ( $params->param('frontend')
and $params->param('frontend') eq 'infoscreen' )
{
- $suffix = '.html';
+ my $data = get_results( $self->param('backend') // $default{backend},
+ $city, $stop );
+ if ( not $data->{errstr} ) {
+ $suffix = '.html';
+ }
}
if ( $city