lib/avo/resources/controls/action.rb in avo-2.32.3 vs lib/avo/resources/controls/action.rb in avo-2.32.4

- old
+ new

@@ -16,10 +16,13 @@ def action @instance ||= @klass.new(model: @model, resource: @resource, view: @view) end def path - Avo::Services::URIService.parse(@resource.record_path).append_paths("actions", action.param_id).to_s + Avo::Services::URIService.parse(@resource.record_path) + .append_paths("actions") + .append_query(action_id: action.param_id) + .to_s end def label @args[:label] || action.action_name end