diff options
author | Samy Pesse <samypesse@gmail.com> | 2016-05-11 15:08:10 +0200 |
---|---|---|
committer | Samy Pesse <samypesse@gmail.com> | 2016-05-11 15:08:10 +0200 |
commit | 9013f02850d7e4cc934eb75967b5f976030e2f0d (patch) | |
tree | 5b17b82bd519d5b4250df09bc3f881cb6b3d5d5c /lib/templating/conrefsLoader.js | |
parent | 961d43f085036263edfe064c2107ab27ad62d8fa (diff) | |
download | gitbook-9013f02850d7e4cc934eb75967b5f976030e2f0d.zip gitbook-9013f02850d7e4cc934eb75967b5f976030e2f0d.tar.gz gitbook-9013f02850d7e4cc934eb75967b5f976030e2f0d.tar.bz2 |
Add test for transform option of ConrefLoader
Diffstat (limited to 'lib/templating/conrefsLoader.js')
-rw-r--r-- | lib/templating/conrefsLoader.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/templating/conrefsLoader.js b/lib/templating/conrefsLoader.js index cdf0c30..52d2a95 100644 --- a/lib/templating/conrefsLoader.js +++ b/lib/templating/conrefsLoader.js @@ -62,7 +62,7 @@ var ConrefsLoader = nunjucks.Loader.extend({ resolve: function(from, to) { // If origin is in the book, we enforce result file to be in the book if (PathUtils.isInRoot(this.rootFolder, from)) { - var href = LocationUtils.toAbsolute(to, path.dirname(from), ''); + var href = LocationUtils.toAbsolute(to, path.dirname(from), this.rootFolder); return PathUtils.resolveInRoot(this.rootFolder, href); } |