diff options
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()])); |