Skip to content

Commit

Permalink
backport fix breadcrumbs for polymorphic paths #3268
Browse files Browse the repository at this point in the history
  • Loading branch information
corylown committed Nov 19, 2024
1 parent 6f56a2a commit 8a2b214
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/components/spotlight/breadcrumbs_component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ def render?
end

def path(path)
return path unless path.instance_of?(::Spotlight::Exhibit)

helpers.exhibit_path(path)
helpers.url_for(path)
end
end
end

0 comments on commit 8a2b214

Please sign in to comment.