Skip to content

Commit

Permalink
Merge pull request #1524 from zoubin/bugfix-relative_url
Browse files Browse the repository at this point in the history
fix relative_url
  • Loading branch information
tommy351 committed Nov 1, 2015
2 parents 1a84bbe + a9f0577 commit c3ba3f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/plugins/helper/relative_url.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function relativeUrlHelper(from, to) {
var outLength = out.length;

// If the last 2 elements of `out` is empty strings, replace them with `index.html`.
if (outLength > 1 && !out[outLength - 1] && !out[outLength] - 2) {
if (outLength > 1 && !out[outLength - 1] && !out[outLength - 2]) {
out = out.slice(0, outLength - 2).concat('index.html');
}

Expand Down

0 comments on commit c3ba3f6

Please sign in to comment.