From e1b22f2d3592d653d4c22ce5f137bb1e0ae5dd3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Guillot?= Date: Sun, 19 Oct 2014 09:52:59 -0400 Subject: [PATCH] Redirect to the feed page after adding a subscription --- controllers/feed.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/controllers/feed.php b/controllers/feed.php index 6fc4eaf..164fb43 100644 --- a/controllers/feed.php +++ b/controllers/feed.php @@ -234,11 +234,11 @@ Router\action('subscribe', function() { $values += array('download_content' => 0); $url = trim($url); - $result = Model\Feed\create($url, $values['download_content']); + $feed_id = Model\Feed\create($url, $values['download_content']); - if ($result) { + if ($feed_id) { Session\flash(t('Subscription added successfully.')); - Response\redirect('?action=feeds'); + Response\redirect('?action=feed-items&feed_id='.$feed_id); } else { Session\flash_error(t('Unable to find a subscription.'));