Merge pull request #271 from gulrotkake/master

Construct uri using uri_for, which respects X-Request-Base.
This commit is contained in:
Rob Vermaas 2016-02-18 10:27:20 +01:00
commit 633381a501

View file

@ -168,7 +168,7 @@ sub showLog {
}
elsif ($mode eq "tail-reload") {
my $url = $c->request->uri->as_string;
my $url = $c->uri_for($c->request->uri->path);
$url =~ s/tail-reload/tail/g;
$c->stash->{url} = $url;
$c->stash->{reload} = !$c->stash->{build}->finished;