From 8942fb9505d21435206af27631b1d5e24d1f476b Mon Sep 17 00:00:00 2001 From: MurakamiShinyu Date: Tue, 23 Oct 2018 14:34:52 +0900 Subject: [PATCH] Fix bug that EPUB internal link does not work --- src/adapt/epub.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/adapt/epub.js b/src/adapt/epub.js index 2df4a216e..04ed06cf3 100644 --- a/src/adapt/epub.js +++ b/src/adapt/epub.js @@ -1635,7 +1635,7 @@ adapt.epub.OPFView.prototype.navigateTo = function(href, position) { } else { path = restored[0]; } - href = path + (restored[1] ? `#${restored[1]}` : ""); + href = restored[0] + (restored[1] ? `#${restored[1]}` : ""); } if (path == null) { return adapt.task.newResult(/** @type {?adapt.epub.PageAndPosition} */ (null));