mirror of
https://github.com/wallabag/wallabag.git
synced 2025-01-18 18:10:07 +01:00
Fix wrong if when deleting an entry
Bad condition when deleting an entry returned `true` instead of the referer url
This commit is contained in:
parent
e6a228c43b
commit
e82160e5e9
@ -347,7 +347,7 @@ class EntryController extends Controller
|
||||
);
|
||||
|
||||
// don't redirect user to the deleted entry
|
||||
return $this->redirect($url !== $request->headers->get('referer') ?: $this->generateUrl('homepage'));
|
||||
return $this->redirect($url !== $request->headers->get('referer') ? $request->headers->get('referer') : $this->generateUrl('homepage'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user