diff options
| author | 2025-06-24 09:22:08 +0200 | |
|---|---|---|
| committer | 2025-06-24 09:22:08 +0200 | |
| commit | 6bec627f7960ede787c28d24415a6c8e2f7370b5 (patch) | |
| tree | 68b6bb04ecb2ed9d54213a2b01a8a6d1854a5a47 /app/Controllers/feedController.php | |
| parent | 2714a2ddcdae60c4ff4f53311be72e73e34e85d3 (diff) | |
Update feedController.php (#7688)
+ Fix for 404 error when trying to refresh the feeds from a view extension. Without this change, this happens:
1. Starting on the extension view: https://freshrss.example.net/i/?c=freshvibes&tab=test&rid=6858299a5c2f0
2. Clicking refresh redirects to https://freshrss.example.net/i/?c=feed&a=actualize with status 302
3. Then to https://freshrss.example.net/i/?get=f_0&rid=685872529cbe9 with status 302
4. Finally, to https://freshrss.example.net/i/?c=error&rid=685872529cbe9 with 404.
Diffstat (limited to 'app/Controllers/feedController.php')
| -rwxr-xr-x | app/Controllers/feedController.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Controllers/feedController.php b/app/Controllers/feedController.php index 35b209a4d..37a403ba8 100755 --- a/app/Controllers/feedController.php +++ b/app/Controllers/feedController.php @@ -916,7 +916,7 @@ class FreshRSS_feed_Controller extends FreshRSS_ActionController { Minz_Request::setGoodNotification(_t('feedback.sub.feed.actualizeds')); // No layout in ajax request. $this->view->_layout(null); - } elseif ($feed instanceof FreshRSS_Feed) { + } elseif ($feed instanceof FreshRSS_Feed && $id > 0) { // Redirect to the main page with correct notification. Minz_Request::good(_t('feedback.sub.feed.actualized', $feed->name()), [ 'params' => ['get' => 'f_' . $id] |
