In-page anchor links use wrong path in epub
Steps to recreate:
- Open ebook that uses
<a href="#anchor">…</a>
links to link to sub-sections of a chapter within that chapter - Copy the link and paste it
Expected behaviour: Link is to epub:///OPS/c01.xhtml#anchor
or similar
Actual behaviour: Link is to epub:///OPS/#anchor
(i.e. the page file name is lost and the anchor is not relative to the current page, which is the normal web browser behaviour for <a>
tags)
(Spotted while debugging gnome-books#24)