From d9a4f7a2115a7c176575edab054ca02ec6fd2375 Mon Sep 17 00:00:00 2001 From: Michael Mortensen Date: Wed, 17 Feb 2016 21:27:44 +0100 Subject: [PATCH] Construct uri using uri_for, which respects X-Request-Base. --- src/lib/Hydra/Controller/Build.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/Hydra/Controller/Build.pm b/src/lib/Hydra/Controller/Build.pm index 72117a47..e2648b53 100644 --- a/src/lib/Hydra/Controller/Build.pm +++ b/src/lib/Hydra/Controller/Build.pm @@ -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;