diff --git a/src/Wallabag/CoreBundle/Controller/EntryController.php b/src/Wallabag/CoreBundle/Controller/EntryController.php index 8491a2875..e458dc113 100644 --- a/src/Wallabag/CoreBundle/Controller/EntryController.php +++ b/src/Wallabag/CoreBundle/Controller/EntryController.php @@ -128,7 +128,7 @@ class EntryController extends AbstractController $this->entityManager->flush(); } - $redirectUrl = $this->redirectHelper->to($request->headers->get('prevUrl')); + $redirectUrl = $this->redirectHelper->to($request->getSession()->get('prevUrl')); return $this->redirect($redirectUrl); } @@ -453,7 +453,7 @@ class EntryController extends AbstractController ); - $redirectUrl = $this->redirectHelper->to($request->headers->get('prevUrl')); + $redirectUrl = $this->redirectHelper->to($request->getSession()->get('prevUrl')); return $this->redirect($redirectUrl); } @@ -483,7 +483,7 @@ class EntryController extends AbstractController $message ); - $redirectUrl = $this->redirectHelper->to($request->headers->get('prevUrl')); + $redirectUrl = $this->redirectHelper->to($request->getSession()->get('prevUrl')); return $this->redirect($redirectUrl); } @@ -520,7 +520,7 @@ class EntryController extends AbstractController // don't redirect user to the deleted entry (check that the referer doesn't end with the same url) - $prev = $request->headers->get('prevUrl'); + $prev = $request->getSession()->get('prevUrl'); $to = (1 !== preg_match('#' . $url . '$#i', $prev) ? $prev : null); $redirectUrl = $this->redirectHelper->to($to);