Fix redirect when delete entry

This commit is contained in:
Nicolas Lœuillet 2016-04-15 15:39:00 +02:00
parent 4086e0782e
commit 345d74268b
No known key found for this signature in database
GPG key ID: 5656BE27E1E34D0A

View file

@ -412,7 +412,7 @@ class EntryController extends Controller
); );
// don't redirect user to the deleted entry // 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); $redirectUrl = $this->get('wallabag_core.helper.redirect')->to($to);