Skip to content

Commit 7512a99

Browse files
committed
fix: Update link generation to use BASE_URL from environment variables
1 parent 741dd09 commit 7512a99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/src/components/modals/generate-public-link-modal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export const GeneratePublicLinkModal = memo<GeneratePublicLinkModalProps>(
8080
throw new Error(response.message || 'Failed to generate link');
8181
}
8282

83-
const link = `${window.location.origin}/link?code=${response.code}`;
83+
const link = `${import.meta.env.BASE_URL}/link?code=${response.code}`;
8484
setGeneratedLink(link);
8585

8686
addToast({

0 commit comments

Comments
 (0)