Skip to content

fix(lxlweb): fix a couple of 500 errors - #1683

Open
andersju wants to merge 2 commits into
developfrom
fix/fix-some-500-errors
Open

fix(lxlweb): fix a couple of 500 errors#1683
andersju wants to merge 2 commits into
developfrom
fix/fix-some-500-errors

Conversation

@andersju

@andersju andersju commented Sep 7, 2026

Copy link
Copy Markdown
Member

Fixes a couple of 500 errors I noticed today:

https://libris-qa.kb.se/q71x1ls21ll1p9x => 500 because one holding has an empty shelfMark and we assume there's a _display where there is none, so let's guard against that.

https://libris-qa.kb.se/8wwffwpx6227vf7n%23it (as opposed to https://libris-qa.kb.se/8wwffwpx6227vf7n#it), or simply https://libris-qa.kb.se/8wwffwpx6227vf7n%23, 500s because Svelte decodes the %23 so params.resource becomes 8wwffwpx6227vf7n#it and then ?framed=true&_findBlank=true become part of the fragment and thus aren't sent, so we request an unframed record which has no mainEntity.

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.

1 participant