universalviewer icon indicating copy to clipboard operation
universalviewer copied to clipboard

Selecting already open manifest in collection loads first manifest

Open LlGC-jop opened this issue 10 months ago • 1 comments

UV version:

 [email protected]

I'm submitting a:

  • [x] bug report => please fork one of these codesandbox examples with a repro of your issue and include a link to it below
  • [ ] feature request => please use the user stories repo
  • [ ] support request => Please do not submit support requests here, use stackoverflow

Current behavior:

Selecting an already loaded issue from a collection via the date tree view reverts the viewer to the first page of the first entry in the collection.

Expected behavior:

Page 1 of the selected issue should be shown.

Steps to reproduce:

  1. Load this manifest: https://damsssl.llgc.org.uk/iiif/2.0/1226390/manifest.json
  2. In the left panel select the 'Index' tab and then group by date
  3. Select any entry after the first one e.g. 01 April 1911
  4. After it's loaded, re-group by date, and re-select the same issue
  5. You should see page 1 of the first issue instead of the one selected

The same appears to happen if the issue if selected via the volume grouping and then re-selected via date grouping. (https://wellcomelibrary.org/iiif/collection/b19974760)

Related code:

// insert any relevant code here

Other information:

While this isn't a major issue, as it's unlikely a user would re-select something they've already selected, it's unexpected and a user might have forgotten which one they're currently viewing.

LlGC-jop avatar Apr 07 '25 14:04 LlGC-jop