2021-10-31 08:01:50 +01:00
|
|
|
export function getUrlWithLoginId(url: string, loginId: string) {
|
|
|
|
const u = new URL(url, origin);
|
2023-01-13 05:40:33 +01:00
|
|
|
u.searchParams.append("loginId", loginId);
|
2021-10-31 08:01:50 +01:00
|
|
|
return u.toString();
|
|
|
|
}
|
|
|
|
|
|
|
|
export function getUrlWithoutLoginId(url: string) {
|
|
|
|
const u = new URL(url);
|
2023-01-13 05:40:33 +01:00
|
|
|
u.searchParams.delete("loginId");
|
2021-10-31 08:01:50 +01:00
|
|
|
return u.toString();
|
|
|
|
}
|