summaryrefslogtreecommitdiffstats
path: root/web/react/utils
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2015-06-16 16:42:14 -0400
committerChristopher Speller <crspeller@gmail.com>2015-06-16 16:42:14 -0400
commitd927e2ba69dd355c01878afc0ec57cca6889b8e1 (patch)
tree5c8836e535e01d9ce5076104f0db6a4a0c82e313 /web/react/utils
parenteedced16c37248ea02992262ef0a63638db674d0 (diff)
downloadchat-d927e2ba69dd355c01878afc0ec57cca6889b8e1.tar.gz
chat-d927e2ba69dd355c01878afc0ec57cca6889b8e1.tar.bz2
chat-d927e2ba69dd355c01878afc0ec57cca6889b8e1.zip
Fixing link
Diffstat (limited to 'web/react/utils')
-rw-r--r--web/react/utils/utils.jsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/react/utils/utils.jsx b/web/react/utils/utils.jsx
index b20e54e84..628d92342 100644
--- a/web/react/utils/utils.jsx
+++ b/web/react/utils/utils.jsx
@@ -737,8 +737,8 @@ module.exports.getHomeLink = function() {
}
var parts = window.location.host.split(".");
if (parts.length <= 1) {
- return window.location.host;
+ return window.location.protocol + "//" + window.location.host;
}
parts[0] = "www";
- return parts.join(".");
+ return window.location.protocol + "//" + parts.join(".");
}