修复外联跳转

This commit is contained in:
2026-06-18 20:40:11 +08:00 Unverified
parent 7dc7cd9e73
commit 63a10dd59e
3 changed files with 23 additions and 3 deletions
+1 -1
View File
@@ -32,7 +32,7 @@
event.preventDefault();
const redirectUrl = `${redirectPath}?url=${encodeURIComponent(externalUrl)}`;
const redirectUrl = `${redirectPath}?url=${encodeURIComponent(externalUrl)}&from=${encodeURIComponent(window.location.href)}`;
const target = anchor.getAttribute('target');
if (target && target !== '_self') {