diff options
Diffstat (limited to 'lib/templating/conrefsLoader.js')
-rw-r--r-- | lib/templating/conrefsLoader.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/templating/conrefsLoader.js b/lib/templating/conrefsLoader.js index e46b4d0..c3e5048 100644 --- a/lib/templating/conrefsLoader.js +++ b/lib/templating/conrefsLoader.js @@ -48,9 +48,9 @@ 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.root, from)) { + if (PathUtils.isInRoot(this.rootFolder, from)) { var href = LocationUtils.toAbsolute(to, path.dirname(from), ''); - return PathUtils.resolveInRoot(this.root, href); + return PathUtils.resolveInRoot(this.rootFolder, href); } // If origin is in a git repository, we resolve file in the git repository |