diff options
Diffstat (limited to 'lib/util.js')
-rw-r--r-- | lib/util.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/util.js b/lib/util.js index 54af598..76c8a02 100644 --- a/lib/util.js +++ b/lib/util.js @@ -37,13 +37,13 @@ exports.heir = function heir(p) { /** * get parameters of URL as an object (name, value) */ -var getParamsFromURL = exports.getParamsFromURL = function getParamsFromURL (url) { +var getParamsFromURL = exports.getParamsFromURL = function getParamsFromURL (url, base) { if (!url || (url.toString().length === 0)) { throw new Error("Missing URL value!"); } if (!(url instanceof urlMod.URL)) { - url = new urlMod.URL(url.toString()); + url = new urlMod.URL(url.toString(), base); } var paramsArr = url.path.split("?"); |