]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Fix redirect when delete entry 1925/head
authorNicolas Lœuillet <nicolas@loeuillet.org>
Fri, 15 Apr 2016 13:39:00 +0000 (15:39 +0200)
committerNicolas Lœuillet <nicolas@loeuillet.org>
Fri, 15 Apr 2016 13:39:00 +0000 (15:39 +0200)
src/Wallabag/CoreBundle/Controller/EntryController.php

index 9443ae821d63fef7e1d61a832d07c064d9e5d73c..69dfd4b108a12e305943a35d908acde9a1a60215 100644 (file)
@@ -412,7 +412,7 @@ class EntryController extends Controller
         );
 
         // don't redirect user to the deleted entry
-        $to = ($url !== $request->headers->get('referer') ? $request->headers->get('referer') : $this->generateUrl('homepage'));
+        $to = ($url !== $request->headers->get('referer') ? $request->headers->get('referer') : null);
 
         $redirectUrl = $this->get('wallabag_core.helper.redirect')->to($to);