From 7e9639052b7ae0872b07d88405dcdfeb79b51680 Mon Sep 17 00:00:00 2001 From: Julien Fontanet Date: Thu, 12 Feb 2015 12:23:35 +0100 Subject: [PATCH] getCurrentUrl() must not ignore protocol and search parts. --- packages/xo-lib/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/xo-lib/index.js b/packages/xo-lib/index.js index 61894a8a4..475a0624c 100644 --- a/packages/xo-lib/index.js +++ b/packages/xo-lib/index.js @@ -100,7 +100,7 @@ function getCurrentUrl() { throw new Error('cannot get current URL'); } - return window.location.host + window.location.pathname; + return String(window.location); } //====================================================================