fix: preserve KOC portal path in delegation links

This commit is contained in:
巫凤萍
2026-08-12 19:53:19 +08:00
parent 51934b0638
commit e05041e037
2 changed files with 6 additions and 1 deletions

View File

@@ -543,7 +543,9 @@ export default function Home() {
};
const delegationUrl = (shareToken: string) => {
const url = new URL(window.location.origin);
const url = new URL(window.location.href);
url.search = "";
url.hash = "";
url.searchParams.set("share", shareToken);
return url.toString();
};