From 9a8f278ff40e5bcdf68a27bc1ec91ad07f50a8ca Mon Sep 17 00:00:00 2001 From: Alexander Faitelson Date: Wed, 28 Dec 2016 09:58:30 +0200 Subject: [PATCH] [*] fix broken link in report --- lib/report/html.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/report/html.js b/lib/report/html.js index 485d22b5..08e3c2d6 100644 --- a/lib/report/html.js +++ b/lib/report/html.js @@ -495,8 +495,9 @@ Report.mix(HtmlReport, { standardLinkMapper: function () { return { fromParent: function (node) { - var relativeName = cleanPath(node.relativeName); - + var relativeName = cleanPath(node.relativeName) + .split('/') + .map(encodeURIComponent).join('/'); return node.kind === 'dir' ? relativeName + 'index.html' : relativeName + '.html'; }, ancestorHref: function (node, num) {