Repository navigation
🐛 Point the range facet's distribution link at the catalog - #3386
Merged
Merged
Conversation
blacklight_range_limit builds the "view distribution" link with no controller, so on homepage themes that render facets (heritage, cultural_repository) it resolves to hyrax/homepage#range_limit. That has no route, and the homepage 500s once a range facet has values. Assisted by: Claude Opus 5.5
kirkkwang
marked this pull request as ready for review
October 9, 2026 15:50
kirkkwang
enabled auto-merge
October 9, 2026 15:53
AKFosterDev
approved these changes
Oct 9, 2026
Test Results 3 files ±0 3 suites ±0 24m 24s ⏱️ - 1m 0s Results for commit 6bdfdee. ± Comparison against base commit 41b9868. This pull request removes 42 and adds 44 tests. Note that renamed tests count towards both. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
refs notch8/palni_palci_knapsack#797
Point the range facet's distribution link at the catalog
When a range facet (
range: true) has values, the homepage themes that render facets (heritage, cultural_repository) raise a 500:BlacklightRangeLimit::RangeFacetComponent#range_limit_urlcallsmain_app.url_for(action: 'range_limit')without a controller, so Rails fills in the current one.Hyrax::HomepageControllerinherits therange_limitaction fromCatalogController, but routes go by controller name, not class hierarchy, andrange_limitis only routed forcatalog. The facet "more" link has the same problem, whichHomepageController#search_facet_pathalready works around. That override can't reach this link because the component builds the URL itself rather than going through a controller helper, so this decorates the component.Stock Hyku configures no range facet, so it only shows up once a knapsack adds one. It hit PALS production (au-archives.hykucommons.org) after a reindex filled in its date range field. This is the same decorator the PALS knapsack is shipping as a hotfix.
Still present in blacklight_range_limit 9.3.0 /
main, so a gem bump won't fix it.Changes proposed in this pull request:
BlacklightRangeLimit::RangeFacetComponent#range_limit_urlto passcontroller: '/catalog'/catalog/range_limit@samvera/hyku-code-reviewers