aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag
diff options
context:
space:
mode:
authorJeremy Benoist <j0k3r@users.noreply.github.com>2015-10-22 09:28:54 +0200
committerJeremy Benoist <j0k3r@users.noreply.github.com>2015-10-22 09:28:54 +0200
commit71200c4155490cb47b64172c3c2159f44cb80eca (patch)
treee3c9b3bc2c5d35127ef17e38508c54c127f47e7b /src/Wallabag
parenta4e1ddf2d64bba7c7e28459ccc6738a9a9e23e71 (diff)
parent18d5f4541e1b3eea9926497e082724807453fc8c (diff)
downloadwallabag-71200c4155490cb47b64172c3c2159f44cb80eca.tar.gz
wallabag-71200c4155490cb47b64172c3c2159f44cb80eca.tar.zst
wallabag-71200c4155490cb47b64172c3c2159f44cb80eca.zip
Merge pull request #1496 from wallabag/v2-redirect-after-deletion
fix #1005 V2 redirect after deletion
Diffstat (limited to 'src/Wallabag')
-rw-r--r--src/Wallabag/CoreBundle/Controller/EntryController.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Wallabag/CoreBundle/Controller/EntryController.php b/src/Wallabag/CoreBundle/Controller/EntryController.php
index f7b52eaf..6769799b 100644
--- a/src/Wallabag/CoreBundle/Controller/EntryController.php
+++ b/src/Wallabag/CoreBundle/Controller/EntryController.php
@@ -324,7 +324,7 @@ class EntryController extends Controller
324 * 324 *
325 * @return \Symfony\Component\HttpFoundation\RedirectResponse 325 * @return \Symfony\Component\HttpFoundation\RedirectResponse
326 */ 326 */
327 public function deleteEntryAction(Entry $entry) 327 public function deleteEntryAction(Request $request, Entry $entry)
328 { 328 {
329 $this->checkUserAction($entry); 329 $this->checkUserAction($entry);
330 330
@@ -337,7 +337,7 @@ class EntryController extends Controller
337 'Entry deleted' 337 'Entry deleted'
338 ); 338 );
339 339
340 return $this->redirect($this->generateUrl('homepage')); 340 return $this->redirect($request->headers->get('referer'));
341 } 341 }
342 342
343 /** 343 /**