diff --git a/frontend/src/scenes/paths/PathNodeCardButton.tsx b/frontend/src/scenes/paths/PathNodeCardButton.tsx index d8976e806760b..b4c2e03313cea 100644 --- a/frontend/src/scenes/paths/PathNodeCardButton.tsx +++ b/frontend/src/scenes/paths/PathNodeCardButton.tsx @@ -33,8 +33,11 @@ export function PathNodeCardButton({ const { user } = useValues(userLogic) const hasAdvancedPaths = user?.organization?.available_features?.includes(AvailableFeature.PATHS_ADVANCED) - const setAsPathStart = (): void => setFilter({ startPoint: pageUrl(node) }) - const setAsPathEnd = (): void => setFilter({ endPoint: pageUrl(node) }) + const nodeName = pageUrl(node) + const isPath = nodeName.includes('/') + + const setAsPathStart = (): void => setFilter({ startPoint: nodeName }) + const setAsPathEnd = (): void => setFilter({ endPoint: nodeName }) const excludePathItem = (): void => { setFilter({ excludeEvents: [...(filter.excludeEvents || []), pageUrl(node, false)] }) } @@ -42,15 +45,15 @@ export function PathNodeCardButton({ viewPathToFunnel(node) } const copyName = (): void => { - void copyToClipboard(pageUrl(node)).then(captureException) + void copyToClipboard(nodeName).then(captureException) } const openModal = (): void => openPersonsModal({ path_end_key: name }) return (