Skip to content

Commit

Permalink
fix breadcrumbs for polymorphic paths (#3268)
Browse files Browse the repository at this point in the history
  • Loading branch information
dnoneill authored Nov 18, 2024
1 parent e86de21 commit 9e21452
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 9e21452

Please sign in to comment.