mirror of
https://github.com/wallabag/wallabag.git
synced 2024-12-17 10:50:29 +01:00
redirect on last page after deletion
This commit is contained in:
parent
a4e1ddf2d6
commit
18d5f4541e
@ -324,7 +324,7 @@ class EntryController extends Controller
|
||||
*
|
||||
* @return \Symfony\Component\HttpFoundation\RedirectResponse
|
||||
*/
|
||||
public function deleteEntryAction(Entry $entry)
|
||||
public function deleteEntryAction(Request $request, Entry $entry)
|
||||
{
|
||||
$this->checkUserAction($entry);
|
||||
|
||||
@ -337,7 +337,7 @@ class EntryController extends Controller
|
||||
'Entry deleted'
|
||||
);
|
||||
|
||||
return $this->redirect($this->generateUrl('homepage'));
|
||||
return $this->redirect($request->headers->get('referer'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user