Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use ->getBaseURL()

  • Loading branch information...
commit 950171b51cbbef3ed81f8a203bbe302f85def529 1 parent de5cc81
@aizatto authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 Controller/FacebookController.php
View
4 Controller/FacebookController.php
@@ -34,7 +34,7 @@ public function loginAction()
if (isset($_SERVER['HTTP_REFERER'])) {
$url = $_SERVER['HTTP_REFERER'];
} else {
- $url = '/';
+ $url = $this->getRequest()->getBaseURL();
}
return new RedirectResponse($url, 302);
@@ -66,7 +66,7 @@ public function logoutAction()
if (isset($_SERVER['HTTP_REFERER'])) {
$url = $_SERVER['HTTP_REFERER'];
} else {
- $url = '/';
+ $url = $this->getRequest()->getBaseURL();
}
$response = new RedirectResponse($url, 302);
Please sign in to comment.
Something went wrong with that request. Please try again.