diff --git a/src/components/ALink.vue b/src/components/ALink.vue index cedaf95a..835dc1a9 100644 --- a/src/components/ALink.vue +++ b/src/components/ALink.vue @@ -25,17 +25,19 @@ const openMode = computed(() => { return 'newTab' }) +// Since BewlyBewly sometimes uses an iframe to open the original Bilibili page in the current tab +// please set the target to `_top` instead of `_self` const target = computed(() => { if (openMode.value === 'newTab') { return '_blank' } if (openMode.value === 'currentTabIfNotHomepage') { - return isHomePage() ? '_blank' : '_self' + return isHomePage() ? '_blank' : '_top' } if (openMode.value === 'currentTab') { - return '_self' + return '_top' } - return '_self' + return '_top' }) function handleClick(event: MouseEvent) { diff --git a/src/components/TopBar/OldTopBar.vue b/src/components/TopBar/OldTopBar.vue index 7a356456..9d3b2d84 100644 --- a/src/components/TopBar/OldTopBar.vue +++ b/src/components/TopBar/OldTopBar.vue @@ -488,6 +488,7 @@ defineExpose({ >