]> git.immae.eu Git - github/wallabag/wallabag.git/commit - src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php
Don't redirect to the content page after deletion 1540/head
authorJeremy Benoist <jeremy.benoist@gmail.com>
Sun, 27 Dec 2015 20:28:48 +0000 (21:28 +0100)
committerJeremy Benoist <jeremy.benoist@gmail.com>
Mon, 28 Dec 2015 12:42:50 +0000 (13:42 +0100)
commit2863bf2ab58a4903128f60751aa416130db93e52
tree42c40d24baab371f5dd41eda12d3cbdbe6445a51
parent71eff67f8b65a8337bd169fe8c271957ddd0aba0
Don't redirect to the content page after deletion

Fix #1512

We generate the url of the removed content and compare it to the referer url. If they matche, we redirect user to the homepage otherwise to the referer url.
src/Wallabag/CoreBundle/Controller/EntryController.php
src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php