Handle linking from feed
This commit is contained in:
parent
8337cb251f
commit
1afda07525
|
@ -22,7 +22,7 @@ export function CopyLinkDateTimeComponent(props: {
|
||||||
) {
|
) {
|
||||||
event.preventDefault()
|
event.preventDefault()
|
||||||
|
|
||||||
let currentLocation = window.location.href.includes('/home?u=')
|
let currentLocation = window.location.href.includes('/home')
|
||||||
? `https://${ENV_CONFIG.domain}${contractPath(contract)}#${elementId}`
|
? `https://${ENV_CONFIG.domain}${contractPath(contract)}#${elementId}`
|
||||||
: window.location.href
|
: window.location.href
|
||||||
if (currentLocation.includes('#')) {
|
if (currentLocation.includes('#')) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user