Skip to content

Conversation

@andersju
Copy link
Member

When porting SearchUtils from Groovy to Java in 8b6df39 the makeFindUrl behavior changed slightly. Basically, due to going from Groovy's check-if-falsy if (!v) to if (v == null), which is quite different!, https://id.kb.se/data.jsonld ended up going from view.@id's like

/find?q=*&and-inScheme.@id=https://id.kb.se/marc

to

/find?q=*&_limit=0&and-inScheme.@id=https://id.kb.se/marc

...and the addition of _limit=0 breaks the id.kb.se UI: https://id.kb.se/find?q=%2a&_limit=0&and-inScheme.%40id=https%3A%2F%2Fid.kb.se%2Fmarc

Without it: https://id.kb.se/find?q=*&and-inScheme.%40id=https%3A%2F%2Fid.kb.se%2Fmarc

This fix simply reverts to the old makeFindUrl() behavior (and adds a test for it).

Copy link
Contributor

@kwahlin kwahlin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢

Copy link
Contributor

@olovy olovy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@andersju andersju merged commit 558a30a into develop Jan 29, 2026
1 check passed
@andersju andersju deleted the bugfix/lxl-4750-fix-find-url branch January 29, 2026 10:27
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

Successfully merging this pull request may close these issues.

4 participants