From 1afda075255ae31b779f66aab8091ef73d0fc964 Mon Sep 17 00:00:00 2001 From: Ian Philips Date: Tue, 17 May 2022 10:00:09 -0600 Subject: [PATCH] Handle linking from feed --- web/components/feed/copy-link-date-time.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/components/feed/copy-link-date-time.tsx b/web/components/feed/copy-link-date-time.tsx index 674ca655..3bd6d21a 100644 --- a/web/components/feed/copy-link-date-time.tsx +++ b/web/components/feed/copy-link-date-time.tsx @@ -22,7 +22,7 @@ export function CopyLinkDateTimeComponent(props: { ) { event.preventDefault() - let currentLocation = window.location.href.includes('/home?u=') + let currentLocation = window.location.href.includes('/home') ? `https://${ENV_CONFIG.domain}${contractPath(contract)}#${elementId}` : window.location.href if (currentLocation.includes('#')) {