From 8c11ca65f8aff463584f5928c674c61d69968420 Mon Sep 17 00:00:00 2001 From: Abner Chou Date: Wed, 26 Jul 2017 15:35:32 -0400 Subject: [PATCH] Revert "fix relative_url reference (#2656)" (#2667) This reverts commit ef0d011268ebd685eb23b109ac52fabaaeb95246. --- lib/plugins/helper/url_for.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/plugins/helper/url_for.js b/lib/plugins/helper/url_for.js index dc006e48c4..e74605cd6d 100644 --- a/lib/plugins/helper/url_for.js +++ b/lib/plugins/helper/url_for.js @@ -2,7 +2,6 @@ var url = require('url'); var _ = require('lodash'); -var relative_url = require('./relative_url'); function urlForHelper(path, options) { path = path || '/'; @@ -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