From 0dca0bb57dab136a35b5cab6bca1b09316edbaee Mon Sep 17 00:00:00 2001 From: Dmitriy Simushev Date: Tue, 3 Feb 2015 16:19:01 +0000 Subject: [PATCH] Build correct URLs for chat popups --- src/mibew/js/source/chat_popup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mibew/js/source/chat_popup.js b/src/mibew/js/source/chat_popup.js index 82a7936e..315dd9a6 100644 --- a/src/mibew/js/source/chat_popup.js +++ b/src/mibew/js/source/chat_popup.js @@ -283,7 +283,7 @@ var Mibew = Mibew || {}; } return this.url - + ((this.url.indexOf('?') === false) ? '?' : '&') + 'url=' + escape(href) + + ((this.url.indexOf('?') === -1) ? '?' : '&') + 'url=' + escape(href) + '&referrer=' + escape(referrer); }