From 6bec627f7960ede787c28d24415a6c8e2f7370b5 Mon Sep 17 00:00:00 2001 From: Stefan <11146296+tryallthethings@users.noreply.github.com> Date: Tue, 24 Jun 2025 09:22:08 +0200 Subject: 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. --- app/Controllers/feedController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') 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] -- cgit v1.2.3