Merge pull request #1496 from wallabag/v2-redirect-after-deletion

fix #1005 V2 redirect after deletion
This commit is contained in:
Jeremy Benoist 2015-10-22 09:28:54 +02:00
commit 71200c4155
1 changed files with 2 additions and 2 deletions

View File

@ -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'));
}
/**