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

[Orangelight/production] NoMethodError: undefined method `-' for {"0"=>"Video/Projected medium"}:ActiveSupport::HashWithIndifferentAccess #4564

Open
eliotjordan opened this issue Nov 13, 2024 · 0 comments
Labels
bug The application does not work as expected because of a defect

Comments

@eliotjordan
Copy link
Member

eliotjordan commented Nov 13, 2024

It looks like this is an issue with how URLs are / are not being escaped with slashes.

Using the UI, the URL (that works) is https://catalog.princeton.edu/?f%5Bformat%5D%5B%5D=Video%2FProjected+medium

The URL from the error (which does not work) is https://catalog.princeton.edu/?f%5Bformat%5D%5B0%5D=Video/Projected%20medium (note the unescaped slash between Video and Projected)

Backtrace

line 5 of [PROJECT_ROOT]/app/components/orangelight/constraint_component.html.erb: call
line 32 of [PROJECT_ROOT]/app/components/orangelight/constraints_component.html.erb: block in call
line 1 of [PROJECT_ROOT]/app/components/orangelight/constraints_component.html.erb: call

View full backtrace and more info at honeybadger.io

@maxkadel maxkadel added the bug The application does not work as expected because of a defect label Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The application does not work as expected because of a defect
Projects
None yet
Development

No branches or pull requests

2 participants