Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
binarygit committed Aug 9, 2024
1 parent ec1d4b0 commit 8adac91
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/components/avo/views/resource_index_component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,8 @@ def can_render_scopes?
end

def back_path
# Show Go Back link only when association page is opened
# as a standalone page
if @reflection.present? && !helpers.turbo_frame_request?
helpers.resource_path(record: @parent_record, resource: @parent_resource)
end
Expand Down

0 comments on commit 8adac91

Please sign in to comment.