]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
redirect on last page after deletion 1496/head
authorNicolas Lœuillet <nicolas.loeuillet@smile.fr>
Wed, 21 Oct 2015 13:26:37 +0000 (15:26 +0200)
committerNicolas Lœuillet <nicolas.loeuillet@smile.fr>
Wed, 21 Oct 2015 13:26:37 +0000 (15:26 +0200)
src/Wallabag/CoreBundle/Controller/EntryController.php

index f7b52eaf71b4de811dedc7173d78eae51935d181..6769799b7f35e2f6693311fac517d4e4f1d723bd 100644 (file)
@@ -324,7 +324,7 @@ class EntryController extends Controller
      *
      * @return \Symfony\Component\HttpFoundation\RedirectResponse
      */
-    public function deleteEntryAction(Entry $entry)
+    public function deleteEntryAction(Request $request, Entry $entry)
     {
         $this->checkUserAction($entry);
 
@@ -337,7 +337,7 @@ class EntryController extends Controller
             'Entry deleted'
         );
 
-        return $this->redirect($this->generateUrl('homepage'));
+        return $this->redirect($request->headers->get('referer'));
     }
 
     /**