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

@@ -174,7 +174,9 @@ class FreshRSS_category_Controller extends FreshRSS_ActionController {
invalidateHttpCache();
$url_redirect = ['c' => 'subscription', 'params' => ['id' => $id, 'type' => 'category']];
$from = Minz_Request::paramString('from');
$prev_controller = $from === 'update' ? 'category' : 'subscription';
$url_redirect = ['c' => $prev_controller, 'a' => $from, 'params' => ['id' => $id, 'type' => 'category']];
if (false !== $categoryDAO->updateCategory($id, $values)) {
Minz_Request::good(
_t('feedback.sub.category.updated'),