From c0f68c45e20230e53593280434ddfd3bc7a571b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samy=20Pess=C3=A9?= Date: Fri, 23 May 2014 21:10:58 +0200 Subject: [PATCH] Fix #249: fix links.toAbsolute on windows --- lib/utils/links.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/utils/links.js b/lib/utils/links.js index 250104454..808d711fd 100644 --- a/lib/utils/links.js +++ b/lib/utils/links.js @@ -19,6 +19,10 @@ var toAbsolute = function(_href, dir, outdir) { // make it relative to output _href = path.relative(outdir, _href); + if (process.platform === 'win32') { + _href = _href.replace(/\\/g, '/'); + } + return _href; };