修复外联跳转
This commit is contained in:
1 parent
7dc7cd9e73
commit
63a10dd59e
3 files changed
+23
-3
No files matched your search
@@ -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') {
|
||||
|
||||
Reference in new issue
Block a user