kiwix / kiwix-xulrunner

[ARCHIVED] Legacy Kiwix desktop solution for Windows/macOS/Linux
https://download.kiwix.org/release/kiwix-xulrunner/
GNU General Public License v3.0
111 stars 28 forks source link

TOC shortlinks seem to fail on few devices/with a few content #424

Closed kelson42 closed 7 years ago

kelson42 commented 7 years ago

User feedback:

On my galaxy Tab A, the table of contents are only able to show me what is contained in the topic being studied. But clicking on the img-20161229-wa0065 outlined subtopics doesn't move the page to the intended location. My friend Dave, who is also using kiwiks on his device has the same experience.

What we would love to happen is that the table of contents should act as a link or shortcut to the stated locations on the given page.

mhutti1 commented 7 years ago

So turns out not all ZIM files have id attributes set for headers. This was easy to fix though as we can just assign our own ids to id less headers when we parse the DOM.