aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/View/Web.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perllib/FixMyStreet/App/View/Web.pm')
-rw-r--r--perllib/FixMyStreet/App/View/Web.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/View/Web.pm b/perllib/FixMyStreet/App/View/Web.pm
index 22387f5f6..b73fa82ef 100644
--- a/perllib/FixMyStreet/App/View/Web.pm
+++ b/perllib/FixMyStreet/App/View/Web.pm
@@ -147,7 +147,7 @@ sub version {
# See if there's an auto.min.js version and use that instead if there is
(my $file_min = $file) =~ s/\.js$/.auto.min.js/;
_version_get_mtime($file_min);
- $file = $file_min if $version_hash{$file_min} >= $version_hash{$file};
+ $url = $file = $file_min if $version_hash{$file_min} >= $version_hash{$file};
}
my $admin = $self->template->context->stash->{admin} ? FixMyStreet->config('ADMIN_BASE_URL') : '';
return "$admin$url?$version_hash{$file}";