fix: invite link generation not accounting for baseURL
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
This commit is contained in:
parent
42823c0e94
commit
76f77f7bfe
1 changed files with 2 additions and 1 deletions
|
@ -40,7 +40,8 @@ function copyInvite(type: "link" | "code") {
|
|||
if (!invite.value) return;
|
||||
|
||||
if (type == "link") {
|
||||
const inviteUrl = URL.parse(`invite/${invite.value}`, `${window.location.protocol}//${window.location.host}`);
|
||||
const runtimeConfig = useRuntimeConfig();
|
||||
const inviteUrl = URL.parse(`invite/${invite.value}`, `${window.location.protocol}//${window.location.host}${runtimeConfig.app.baseURL}`);
|
||||
if (inviteUrl) {
|
||||
navigator.clipboard.writeText(inviteUrl.href);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue