summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/DBInfoscreen/Controller/Stationboard.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/DBInfoscreen/Controller/Stationboard.pm b/lib/DBInfoscreen/Controller/Stationboard.pm
index 04b0ba3..5cb05c4 100644
--- a/lib/DBInfoscreen/Controller/Stationboard.pm
+++ b/lib/DBInfoscreen/Controller/Stationboard.pm
@@ -46,7 +46,7 @@ sub handle_no_results {
sub {
my (@candidates) = @_;
@candidates = map { [ $_->{name}, $_->{id} ] } @candidates;
- if ( @candidates == 1 ) {
+ if ( @candidates == 1 and $candidates[0][0] ne $station ) {
my $s = $candidates[0][0];
my $params = $self->req->params->to_string;
$self->redirect_to("/${s}?${params}");