diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2018-10-12 22:13:33 +0200 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2018-10-12 22:14:12 +0200 |
commit | c694f4b0eda024de041a606ce381eb92c5c6ff65 (patch) | |
tree | 712b446aec38f7f07826947057cdb76d7acf7e56 /src/Wallabag/CoreBundle/Controller | |
parent | 60e919b8e218d118d04b797fc98cb2023a18e3b7 (diff) | |
download | wallabag-c694f4b0eda024de041a606ce381eb92c5c6ff65.tar.gz wallabag-c694f4b0eda024de041a606ce381eb92c5c6ff65.tar.zst wallabag-c694f4b0eda024de041a606ce381eb92c5c6ff65.zip |
Redirect to the current view instead of homepageadd-random-article
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()])); |