diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Wallabag/CoreBundle/Controller/EntryController.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Wallabag/CoreBundle/Controller/EntryController.php b/src/Wallabag/CoreBundle/Controller/EntryController.php index f7b52eaf..6769799b 100644 --- a/src/Wallabag/CoreBundle/Controller/EntryController.php +++ b/src/Wallabag/CoreBundle/Controller/EntryController.php | |||
@@ -324,7 +324,7 @@ class EntryController extends Controller | |||
324 | * | 324 | * |
325 | * @return \Symfony\Component\HttpFoundation\RedirectResponse | 325 | * @return \Symfony\Component\HttpFoundation\RedirectResponse |
326 | */ | 326 | */ |
327 | public function deleteEntryAction(Entry $entry) | 327 | public function deleteEntryAction(Request $request, Entry $entry) |
328 | { | 328 | { |
329 | $this->checkUserAction($entry); | 329 | $this->checkUserAction($entry); |
330 | 330 | ||
@@ -337,7 +337,7 @@ class EntryController extends Controller | |||
337 | 'Entry deleted' | 337 | 'Entry deleted' |
338 | ); | 338 | ); |
339 | 339 | ||
340 | return $this->redirect($this->generateUrl('homepage')); | 340 | return $this->redirect($request->headers->get('referer')); |
341 | } | 341 | } |
342 | 342 | ||
343 | /** | 343 | /** |