mirror of
https://github.com/wallabag/wallabag.git
synced 2024-12-20 12:14:10 +01:00
Update EntryController.php
This commit is contained in:
parent
ced2ea4015
commit
9729db75de
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user