pulibrary / figgy

Valkyrie-based digital repository backend.
Other
35 stars 4 forks source link

Update viewer logic to handle "unauthorized" redirects for CDL #6440

Closed tpendragon closed 1 week ago

tpendragon commented 1 week ago

We accidentally broke CDL in https://github.com/pulibrary/figgy/blob/e4162d20d99111cd64e574fd306982246a75354e/app/javascript/viewer/uv_manager.js#L23. We used to check manifest statuses and redirect if it was unauthorized, but not if it was "forbidden."

This PR adds a forbidden status to the embed code, which should get us back to parity.

Tested locally and this fixes the screen for CDL.

Closes #6418