[WEB-3797] fix: remove leading slash from URL to copy (#6890)

* fix: remove prefix slash if present

* chore: make use of URL class to generate a valid URL
This commit is contained in:
Aaryan Khandelwal 2025-04-08 15:22:23 +05:30 committed by GitHub
parent 27cec64c56
commit 37699362ad
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 24 additions and 45 deletions

View file

@ -1,14 +1,10 @@
import { useMemo } from "react";
// plane constants
// plane imports
import { IS_FAVORITE_MENU_OPEN } from "@plane/constants";
// plane editor
import { EditorRefApi } from "@plane/editor";
// plane types
import { EPageAccess } from "@plane/types/src/enums";
// plane ui
import { setToast, TOAST_TYPE } from "@plane/ui";
// helpers
import { copyUrlToClipboard } from "@/helpers/string.helper";
import { copyUrlToClipboard } from "@plane/utils";
// hooks
import { useCollaborativePageActions } from "@/hooks/use-collaborative-page-actions";
// store types