Skip to content

Commit

Permalink
Revert "fix relative_url reference (#2656)"
Browse files Browse the repository at this point in the history
This reverts commit ef0d011.
  • Loading branch information
NoahDragon committed Jul 26, 2017
1 parent ef0d011 commit e31eaff
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/plugins/helper/url_for.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

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

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

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

// Prepend root path
Expand Down

0 comments on commit e31eaff

Please sign in to comment.