Improve consistency of slider behavior after submitting form (#8612)

Closes https://github.com/FreshRSS/FreshRSS/issues/8529

* Preserve `error` parameter after submitting form in subscription management
This commit is contained in:
Inverle
2026-03-18 00:10:53 +01:00
committed by GitHub
parent aeb55693e4
commit 815b97017b
18 changed files with 169 additions and 88 deletions

View File

@@ -375,13 +375,16 @@ class FreshRSS_subscription_Controller extends FreshRSS_ActionController {
case 'reader':
$get = Minz_Request::paramString('get');
if ($get !== '') {
$url_redirect = ['c' => 'index', 'a' => $from, 'params' => ['get' => $get]];
$url_redirect = ['c' => 'index', 'a' => $from, 'params' => ['id' => $id, 'get' => $get]];
} else {
$url_redirect = ['c' => 'index', 'a' => $from];
$url_redirect = ['c' => 'index', 'a' => $from, 'params' => ['id' => $id]];
}
break;
case 'index':
$url_redirect = ['c' => 'subscription', 'params' => ['id' => $id, 'error' => Minz_Request::paramBoolean('error') ? 1 : 0]];
break;
default:
$url_redirect = ['c' => 'subscription', 'params' => ['id' => $id]];
$url_redirect = ['c' => 'subscription', 'a' => 'feed', 'params' => ['id' => $id]];
}
if ($favicon_uploaded && !$resetFavicon) {