diff --git a/.eslintrc.json b/.eslintrc.json index 008e68b3a5..82a5e9a873 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -330,7 +330,7 @@ // Updated regex expressions are currently being tested in casper // files and will decide about a potential future enforcement of this rule. "no-useless-escape": 0, - "no-whitespace-before-property": 0, + "no-whitespace-before-property": 2, "no-with": 2, "one-var": [ "error", "never" ], "padded-blocks": 0, diff --git a/static/js/narrow.js b/static/js/narrow.js index bb178f997d..13f059f021 100644 --- a/static/js/narrow.js +++ b/static/js/narrow.js @@ -754,7 +754,7 @@ exports.by_near_uri = function (message_id) { exports.by_conversation_and_time_uri = function (message, is_absolute_url) { var absolute_url = ""; if (is_absolute_url) { - absolute_url = window.location .protocol + "//" + + absolute_url = window.location.protocol + "//" + window.location.host + "/" + window.location.pathname.split('/')[1]; } if (message.type === "stream") {