Skip to content

Commit

Permalink
Merge pull request #3269 from projectblacklight/backport-breadcrumb-fix
Browse files Browse the repository at this point in the history
backport fix breadcrumbs for polymorphic paths #3268
  • Loading branch information
corylown authored Nov 19, 2024
2 parents 6f56a2a + 8a2b214 commit 50204b0
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 50204b0

Please sign in to comment.