mirror of
https://akkoma.dev/AkkomaGang/akkoma-fe.git
synced 2024-11-10 02:30:13 +00:00
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