diff options
author | Nicolas LÅ“uillet <nicolas.loeuillet@smile.fr> | 2015-10-21 15:26:37 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas.loeuillet@smile.fr> | 2015-10-21 15:26:37 +0200 |
commit | 18d5f4541e1b3eea9926497e082724807453fc8c (patch) | |
tree | e3c9b3bc2c5d35127ef17e38508c54c127f47e7b /src/Wallabag | |
parent | a4e1ddf2d64bba7c7e28459ccc6738a9a9e23e71 (diff) | |
download | wallabag-18d5f4541e1b3eea9926497e082724807453fc8c.tar.gz wallabag-18d5f4541e1b3eea9926497e082724807453fc8c.tar.zst wallabag-18d5f4541e1b3eea9926497e082724807453fc8c.zip |
redirect on last page after deletion
Diffstat (limited to 'src/Wallabag')
-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 | /** |