forked from AkkomaGang/akkoma-fe
Always open tag in same instance
This commit is contained in:
parent
a12397cf38
commit
a215f6856d
1 changed files with 1 additions and 7 deletions
|
@ -283,13 +283,7 @@ const Status = {
|
|||
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')
|
||||
}
|
||||
this.$router.push(target.pathname)
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue