Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specify config.search_state_fields for Blacklight 8 #2966

Open
jcoyne opened this issue Mar 9, 2023 · 0 comments
Open

Specify config.search_state_fields for Blacklight 8 #2966

jcoyne opened this issue Mar 9, 2023 · 0 comments

Comments

@jcoyne
Copy link
Member

jcoyne commented Mar 9, 2023

Blacklight 8 now sanitizes the search state parameters. So we need to ensure some parameters that Spotlight uses are allowed.

    config.search_state_fields += [:exhibit_id, :browse_category_id]
thatbudakguy added a commit to sul-dlss/dlme that referenced this issue Mar 9, 2023
This fixes an issue where browse categories appeared to display
all items instead of filtering to the category, because we were
not sending the browse category ID to solr. Blacklight 8 strips
out unknown params from the search unless they are specified
in config.search_state_fields.

See related projectblacklight/spotlight#2966
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant