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