Hashtag opens in same tab
This commit is contained in:
parent
3d337a239e
commit
a12397cf38
|
@ -282,9 +282,16 @@ const Status = {
|
||||||
this.$router.push(link)
|
this.$router.push(link)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
|
if (target.hostname === window.location.hostname) {
|
||||||
|
// if the hashtag's target is current instance, open in same tab
|
||||||
|
this.$router.push(target.pathname)
|
||||||
|
} else {
|
||||||
|
// if it is different instance, open in a new tab
|
||||||
window.open(target.href, '_blank')
|
window.open(target.href, '_blank')
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
toggleReplying () {
|
toggleReplying () {
|
||||||
this.replying = !this.replying
|
this.replying = !this.replying
|
||||||
|
|
Loading…
Reference in New Issue