replay ie host fix

https://github.com/NodeBB/NodeBB/pull/2216
This commit is contained in:
barisusakli
2014-10-03 11:48:47 -04:00
parent 0e3c5195db
commit 43806e5921

View File

@@ -275,7 +275,7 @@ $(document).ready(function() {
}
if ((!e.ctrlKey && !e.shiftKey && !e.metaKey) && e.which === 1) {
if (this.host === window.location.host) {
if (this.host === '' || this.host === window.location.host) {
// Internal link
var url = this.href.replace(rootUrl + '/', '');