修复外联跳转

This commit is contained in:
biss committed 2026-06-18 20:40:11 +08:00
1 parent 7dc7cd9e73
commit 63a10dd59e
3 files changed
+23 -3

No files matched your search

+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') {