mirror of
https://github.com/documenso/documenso.git
synced 2025-11-12 15:53:02 +10:00
This commit is contained in:
@ -58,7 +58,7 @@ export const DocumentShareButton = ({ token, documentId, className }: DocumentSh
|
||||
|
||||
const onCopyClick = async () => {
|
||||
if (shareLink) {
|
||||
await copyShareLink(`${window.location.origin}/share/${shareLink.slug}`);
|
||||
await copyShareLink(`${process.env.NEXT_PUBLIC_WEBAPP_URL}/share/${shareLink.slug}`);
|
||||
} else {
|
||||
await createAndCopyShareLink({
|
||||
token,
|
||||
|
||||
Reference in New Issue
Block a user