diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/utils/page.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/utils/page.js b/lib/utils/page.js index fce800b..cdc7d1a 100644 --- a/lib/utils/page.js +++ b/lib/utils/page.js @@ -189,8 +189,10 @@ function normalizeHtml(src, options) { if (links.isRelative(href)) { var absolutePath = path.join(options.base, href); - // If is in navigation relative: change extsnio nto be .html - if (options.navigation[absolutePath]) href = links.changeExtension(href, ".html"); + // If is in navigation relative: transform as content + if (options.navigation[absolutePath]) { + href = options.book.contentLink(href); + } // Transform as absolute href = links.toAbsolute(href, options.base, options.output); |