Skip to content

Bug: Last page of a collection item downloads 2nd to last page #55

@nrsa222

Description

@nrsa222

In a collection item, for example: https://exploreuk.uky.edu/catalog/xt7qjq0stw34_12, when paging through using the navigation arrows or downloading using the "JPEG of this page" button, the user thinks they are on the last page of the collection, but when they download the second to last page downloads.

Expected behavior is that when a user is on the last page of any item, and they click download this page, they get the same page that they are looking at in the viewer.

There is an error with the page.id variable in the book reader view where page.id doesn't get built correctly in the URL for the last page and then breaks the URL for the download and navigation.

From the console log: Uncaught TypeError: Cannot read properties of undefined (reading 'id')
at xt7qjq0stw34_12:118:35

var text = '<?= $this->path('/catalog/') ?>' + page.id + '/text';

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions