diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2018-10-12 22:13:33 +0200 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2019-01-19 21:10:16 +0100 |
commit | 9a57653aec85b0f5220436d5cb76545e66c24a11 (patch) | |
tree | 8e51f8441f4e80d5e85d06d34f3fe6f9c755e68f /src/Wallabag/CoreBundle/Controller | |
parent | 90a0d086a8fd138804866436592bf7f1c7456a4a (diff) | |
download | wallabag-9a57653aec85b0f5220436d5cb76545e66c24a11.tar.gz wallabag-9a57653aec85b0f5220436d5cb76545e66c24a11.tar.zst wallabag-9a57653aec85b0f5220436d5cb76545e66c24a11.zip |
Redirect to the current view instead of homepage
Diffstat (limited to 'src/Wallabag/CoreBundle/Controller')
-rw-r--r-- | src/Wallabag/CoreBundle/Controller/EntryController.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Wallabag/CoreBundle/Controller/EntryController.php b/src/Wallabag/CoreBundle/Controller/EntryController.php index ab50ebdf..dfb5eb54 100644 --- a/src/Wallabag/CoreBundle/Controller/EntryController.php +++ b/src/Wallabag/CoreBundle/Controller/EntryController.php | |||
@@ -251,7 +251,7 @@ class EntryController extends Controller | |||
251 | /** | 251 | /** |
252 | * Shows random entry depending on the given type. | 252 | * Shows random entry depending on the given type. |
253 | * | 253 | * |
254 | * @param Entry $entry | 254 | * @param string $type |
255 | * | 255 | * |
256 | * @Route("/{type}/random", name="random_entry", requirements={"_locale": "unread|starred|archive|untagged|all"}) | 256 | * @Route("/{type}/random", name="random_entry", requirements={"_locale": "unread|starred|archive|untagged|all"}) |
257 | * | 257 | * |
@@ -267,7 +267,7 @@ class EntryController extends Controller | |||
267 | $bag->clear(); | 267 | $bag->clear(); |
268 | $bag->add('notice', 'flashes.entry.notice.no_random_entry'); | 268 | $bag->add('notice', 'flashes.entry.notice.no_random_entry'); |
269 | 269 | ||
270 | return $this->redirect($this->generateUrl('homepage')); | 270 | return $this->redirect($this->generateUrl($type)); |
271 | } | 271 | } |
272 | 272 | ||
273 | return $this->redirect($this->generateUrl('view', ['id' => $entry->getId()])); | 273 | return $this->redirect($this->generateUrl('view', ['id' => $entry->getId()])); |