mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-03-26 18:22:50 -04:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user