summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Http/HttpUtils.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/Http/HttpUtils.php b/Http/HttpUtils.php
index a293538..a26b1bd 100644
--- a/Http/HttpUtils.php
+++ b/Http/HttpUtils.php
@@ -71,6 +71,9 @@ class HttpUtils
$this->resetLocale($request);
$path = $this->generateUrl($path, true);
}
+ if (0 !== strpos($path, 'http')) {
+ $path = $request->getUriForPath($path);
+ }
$newRequest = Request::create($path, 'get', array(), $request->cookies->all(), array(), $request->server->all());
if ($session = $request->getSession()) {