Skip to content
This repository has been archived by the owner on Dec 8, 2024. It is now read-only.

Commit

Permalink
[*] fix broken link in report
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Faitelson committed Dec 28, 2016
1 parent 92dca0b commit 9a8f278
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/report/html.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 9a8f278

Please sign in to comment.