Construct uri using uri_for, which respects X-Request-Base.

This commit is contained in:
Michael Mortensen 2016-02-17 21:27:44 +01:00
parent d7a123fcd4
commit d9a4f7a211

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;