From 8a2b214c01c6d3a9ccfeae47a02acdeea4b56851 Mon Sep 17 00:00:00 2001 From: Cory Lown Date: Tue, 19 Nov 2024 10:47:06 -0500 Subject: [PATCH] backport fix breadcrumbs for polymorphic paths #3268 --- app/components/spotlight/breadcrumbs_component.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/components/spotlight/breadcrumbs_component.rb b/app/components/spotlight/breadcrumbs_component.rb index cae19a857..f16eff5b7 100644 --- a/app/components/spotlight/breadcrumbs_component.rb +++ b/app/components/spotlight/breadcrumbs_component.rb @@ -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