diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-04-15 15:39:00 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-04-15 15:39:00 +0200 |
commit | 345d74268b2d3d232b2de02f30e950d032a2e7b5 (patch) | |
tree | 303b94e968af2174dee6ad28d5775f3e6dd1ac8b /src | |
parent | 4086e0782e4545bd3572f929b4476b200588f6c0 (diff) | |
download | wallabag-345d74268b2d3d232b2de02f30e950d032a2e7b5.tar.gz wallabag-345d74268b2d3d232b2de02f30e950d032a2e7b5.tar.zst wallabag-345d74268b2d3d232b2de02f30e950d032a2e7b5.zip |
Fix redirect when delete entry
Diffstat (limited to 'src')
-rw-r--r-- | src/Wallabag/CoreBundle/Controller/EntryController.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Wallabag/CoreBundle/Controller/EntryController.php b/src/Wallabag/CoreBundle/Controller/EntryController.php index 9443ae82..69dfd4b1 100644 --- a/src/Wallabag/CoreBundle/Controller/EntryController.php +++ b/src/Wallabag/CoreBundle/Controller/EntryController.php | |||
@@ -412,7 +412,7 @@ class EntryController extends Controller | |||
412 | ); | 412 | ); |
413 | 413 | ||
414 | // don't redirect user to the deleted entry | 414 | // don't redirect user to the deleted entry |
415 | $to = ($url !== $request->headers->get('referer') ? $request->headers->get('referer') : $this->generateUrl('homepage')); | 415 | $to = ($url !== $request->headers->get('referer') ? $request->headers->get('referer') : null); |
416 | 416 | ||
417 | $redirectUrl = $this->get('wallabag_core.helper.redirect')->to($to); | 417 | $redirectUrl = $this->get('wallabag_core.helper.redirect')->to($to); |
418 | 418 | ||