diff options
Diffstat (limited to 'lib/utils/page.js')
-rw-r--r-- | lib/utils/page.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/utils/page.js b/lib/utils/page.js index 0636ce8..010d703 100644 --- a/lib/utils/page.js +++ b/lib/utils/page.js @@ -205,9 +205,12 @@ function normalizeHtml(src, options) { // Keep it as it is } else if (links.isRelative(href)) { var parts = url.parse(href); - var absolutePath = links.join(options.base, parts.pathname); + + var pathName = decodeURIComponent(parts.pathname); var anchor = parts.hash || ''; + // Calcul absolute path for this file (without the anchor) + var absolutePath = links.join(options.base, pathName); // If is in navigation relative: transform as content if (options.navigation[absolutePath]) { |