mirror of
https://github.com/makeplane/plane.git
synced 2025-12-25 16:19:43 +01:00
fix: copy page link url (#5263)
This commit is contained in:
committed by
GitHub
parent
f2af5f0653
commit
1adfb4dbe4
@@ -108,7 +108,10 @@ export const PageOptionsDropdown: React.FC<Props> = observer((props) => {
|
||||
{
|
||||
key: "copy-page-link",
|
||||
action: () => {
|
||||
copyUrlToClipboard(`${workspaceSlug?.toString()}/projects/${projectId?.toString()}/pages/${id}`).then(() =>
|
||||
const pageLink = projectId
|
||||
? `${workspaceSlug?.toString()}/projects/${projectId?.toString()}/pages/${id}`
|
||||
: `${workspaceSlug?.toString()}/pages/${id}`;
|
||||
copyUrlToClipboard(pageLink).then(() =>
|
||||
setToast({
|
||||
type: TOAST_TYPE.SUCCESS,
|
||||
title: "Success!",
|
||||
|
||||
Reference in New Issue
Block a user