From 01802964c5d705c27beb21c72ffd6e3834179e8a Mon Sep 17 00:00:00 2001 From: Jorge Manrubia Date: Tue, 6 May 2025 12:17:06 +0200 Subject: [PATCH] Fix: consider "id" param too --- app/models/command/parser/context.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/command/parser/context.rb b/app/models/command/parser/context.rb index a3ad38ad0..315c155a6 100644 --- a/app/models/command/parser/context.rb +++ b/app/models/command/parser/context.rb @@ -26,6 +26,6 @@ class Command::Parser::Context route = Rails.application.routes.recognize_path(uri.path) @controller = route[:controller] @action = route[:action] - @params = Rack::Utils.parse_nested_query(uri.query) + @params = Rack::Utils.parse_nested_query(uri.query).merge(route.except(:controller, :action)) end end