app/components/avo/actions_component.rb in avo-2.9.2.pre1 vs app/components/avo/actions_component.rb in avo-2.10.0
- old
+ new
@@ -41,12 +41,16 @@
def on_index_page?
!on_record_page?
end
def single_record_path(id)
- "#{@resource.record_path}/actions/#{id}"
+ Avo::Services::URIService.parse(@resource.record_path)
+ .append_paths("actions", id)
+ .to_s
end
def many_records_path(id)
- "#{@resource.records_path}/actions/#{id}"
+ Avo::Services::URIService.parse(@resource.records_path)
+ .append_paths("actions", id)
+ .to_s
end
end