From 38dc45b93d89ddbdcfd6be3e2fef0a6421240a0a Mon Sep 17 00:00:00 2001 From: "Konstantin.Myakshin" Date: Wed, 16 Jul 2014 16:53:58 +0300 Subject: [PATCH] Fix proxy when it path contains query string --- cross-domain/respond.proxy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cross-domain/respond.proxy.js b/cross-domain/respond.proxy.js index 9322a354..90204ad0 100644 --- a/cross-domain/respond.proxy.js +++ b/cross-domain/respond.proxy.js @@ -30,7 +30,7 @@ docElem.insertBefore(iframe, docElem.firstElementChild || docElem.firstChild ); } - iframe.src = checkBaseURL(proxyURL) + "?url=" + encode(redirectURL) + "&css=" + encode(checkBaseURL(url)); + iframe.src = checkBaseURL(proxyURL) + (proxyURL.indexOf('?') === -1 ? '?' : '&') + "url=" + encode(redirectURL) + "&css=" + encode(checkBaseURL(url)); function checkFrameName() { var cssText;