mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-27 11:31:05 +00:00
Fix redirect when delete entry
This commit is contained in:
parent
4086e0782e
commit
345d74268b
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue