Closed mickael-menu closed 1 month ago
Instead of comparing URL to their string representation, compare their components with different rules:
The reason for this change is that some EPUBs encode unreserved characters which breaks locating a Link from an HREF.
For example both of these are valid relative URLs which point to the same resource:
Text/Ces_choses_qu'on_laisse.xhtml
Text/Ces_choses_qu%27on_laisse.xhtml
Superseded by https://github.com/readium/kotlin-toolkit/pull/534
Instead of comparing URL to their string representation, compare their components with different rules:
The reason for this change is that some EPUBs encode unreserved characters which breaks locating a Link from an HREF.
For example both of these are valid relative URLs which point to the same resource:
Text/Ces_choses_qu'on_laisse.xhtml
Text/Ces_choses_qu%27on_laisse.xhtml