Skip to content

Commit

Permalink
fix relative_url reference (#2656)
Browse files Browse the repository at this point in the history
fix for "TypeError: this.relative_url is not a function" error, issue #2426
  • Loading branch information
dranovsk authored and NoahDragon committed Jul 19, 2017
1 parent e54f5e1 commit ef0d011
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/plugins/helper/url_for.js
Expand Up @@ -2,6 +2,7 @@

var url = require('url');
var _ = require('lodash');
var relative_url = require('./relative_url');

function urlForHelper(path, options) {
path = path || '/';
Expand All @@ -25,7 +26,7 @@ function urlForHelper(path, options) {

// Resolve relative url
if (options.relative) {
return this.relative_url(this.path, path);
return relative_url(this.path, path);
}

// Prepend root path
Expand Down

0 comments on commit ef0d011

Please sign in to comment.