fix: fix bugs
This commit is contained in:
@@ -21,6 +21,7 @@ export const openLink = (path: string, target: string = '_self') => {
|
||||
window.open(path, target);
|
||||
return;
|
||||
}
|
||||
const url = wrapBasename(path);
|
||||
window.open(url, target);
|
||||
const url = new URL(path, window.location.origin);
|
||||
url.pathname = wrapBasename(url.pathname);
|
||||
window.open(url.toString(), target);
|
||||
}
|
||||
Reference in New Issue
Block a user