8000 [FrameworkBundle] fixed redirect controller when a non-standard port … · qcho/symfony@3949b8e · GitHub
[go: up one dir, main page]

Skip to content

Commit 3949b8e

Browse files
committed
[FrameworkBundle] fixed redirect controller when a non-standard port is used (closes symfony#965)
1 parent 5a38886 commit 3949b8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bundle/FrameworkBundle/Controller/RedirectController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public function urlRedirectAction($path, $permanent = false, $scheme = null, $ht
8686
$port = ':'.$httpsPort;
8787
}
8888

89-
$url = $scheme.'://'.$request->getHttpHost().$port.$request->getBaseUrl().$path.$qs;
89+
$url = $scheme.'://'.$request->getHost().$port.$request->getBaseUrl().$path.$qs;
9090

9191
return new RedirectResponse($url, $permanent ? 301 : 302);
9292
}

0 commit comments

Comments
 (0)
0