Skip to content
This repository was archived by the owner on May 7, 2025. It is now read-only.
This repository was archived by the owner on May 7, 2025. It is now read-only.

TOC does not always navigate to the correct location #515

@rkwright

Description

@rkwright

Reported via email by Franklin Veaux:

"As long as the ToC items reference a new file inside the ePub, all is good. However, if a ToC entry references a section within a file—a subheading, say—clicking on that Table of Contents entry goes to the wrong place in the file. For example, if I have an eBook that has section heads within a file, identified by an ID attribute on a tag, and I click on the Table of Contents to go to one of those sections, Readium will take me to what seems to be a random place within that file in the eBook.
*Make sure to fill-in as much information as possible in the sections below:"

Verified by Readium QE in Readium Chrome 2.23.0-alpha

This issue is a: BUG

Related issue(s), pull request(s)

See also #NUMBER

Expected behaviour

Should navigate to the expected location.

Observed behaviour

Instead, goes somewhere else.

Steps to reproduce

  1. Load test file here
  2. Try to navigate to one the TOC entries, e.g. "Do People Choose to be Poly".
  3. It doesn't navigate to the page with that section but in fact the page before.

Similar errors can be seen with other TOC entries. The errors don't seem to huge - usually the next page is correct.

Test file(s)

See above

Product

Chrome Extension (2.22.3)

Web browser

Chrome

Operating system

OSX Yosemite (10.10)

Additional information.

From Franklin Veaux:
"Attached is a sample eBook where the ToC entries do not take the reader to the correct place in Readium. I’m using Readium on Google Chrome for Mac under OS X Yosemite. The eBook was built in Calibre version 2.54.0."

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions