Framework updates

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
root
2026-01-06 06:03:05 +00:00
parent 1506573202
commit 71d042ff3c
4 changed files with 208 additions and 24 deletions

View File

@@ -165,8 +165,8 @@ class Dispatcher
// For GET requests: redirect to the proper route
$params = array_merge($extra_params, $request->query->all());
// Generate proper URL using Rsx::Route
$proper_url = Rsx::Route($controller_name, $action_name, $params);
// Generate proper URL using Rsx::Route (signature: "Controller::method", $params)
$proper_url = Rsx::Route($controller_name . '::' . $action_name, $params);
console_debug('DISPATCH', 'Redirecting GET to proper route:', $proper_url);
@@ -209,8 +209,9 @@ class Dispatcher
if ($route_pattern) {
// Generate proper URL for the SPA action
// Note: SPA actions use class name only (action_name is ignored for SPA routes)
$params = array_merge($extra_params, $request->query->all());
$proper_url = Rsx::Route($controller_name, $action_name, $params);
$proper_url = Rsx::Route($controller_name, $params);
console_debug('DISPATCH', 'Redirecting to SPA action route:', $proper_url);