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 authored and GitHub committed 2026-03-18 00:10:53 +01:00
1 parent aeb55693e4
commit 815b97017b
18 files changed
+169 -88

No files matched your search

+11 -4
View File
@@ -111,10 +111,17 @@ class FreshRSS_index_Controller extends FreshRSS_ActionController {
$id = Minz_Request::paramInt('id');
if ($id !== 0) {
$view = Minz_Request::paramString('a');
$url_redirect = ['c' => 'subscription', 'a' => 'feed', 'params' => ['id' => (string)$id, 'from' => $view]];
Minz_Request::forward($url_redirect, true);
return;
if (Minz_Request::paramString('type') === 'tag') {
$tagDAO = FreshRSS_Factory::createTagDao();
$tag = $tagDAO->searchById($id);
$this->view->tag = $tag;
} else {
$feedDAO = FreshRSS_Factory::createFeedDao();
$feed = $feedDAO->searchById($id);
$this->view->feed = $feed;
}
$this->view->displaySlider = true;
$this->view->cfrom = Minz_Request::actionName();
}
try {