alexadam / save-as-ebook

Save a web page/selection as an eBook (.epub format) - a Chrome/Firefox/Opera Web Extension

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

In-page links (#anchor-only) get broken

d-g opened this issue · comments

commented

Saver prepends base URL to all relative URLs, even to in-page ones, i. e. a link like <a href="#ref1"> becomes <a href="https://example.org/article#ref1">.

This seems to be easily fixable for single-page epubs, yet it would be very nice if cross-page links between chapters saved in a single epub from different pages would be uniquified and converted to relatives too.