From cd937e0c67a5361e619963dc2e9f077a15c8ac08 Mon Sep 17 00:00:00 2001 From: Aditya Radhakrishnan Date: Tue, 20 Dec 2022 07:04:56 -0800 Subject: [PATCH] fix(ui): URL encode urns for ownership entity links (#6814) --- .../src/app/entity/shared/components/styled/ExpandedOwner.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/datahub-web-react/src/app/entity/shared/components/styled/ExpandedOwner.tsx b/datahub-web-react/src/app/entity/shared/components/styled/ExpandedOwner.tsx index 41f445f9ad..2f82db0ee1 100644 --- a/datahub-web-react/src/app/entity/shared/components/styled/ExpandedOwner.tsx +++ b/datahub-web-react/src/app/entity/shared/components/styled/ExpandedOwner.tsx @@ -10,6 +10,7 @@ import { useEntityRegistry } from '../../../../useEntityRegistry'; import analytics, { EventType, EntityActionType } from '../../../../analytics'; import { useEntityData } from '../../EntityContext'; import { getDescriptionFromType, getNameFromType } from '../../containers/profile/sidebar/Ownership/ownershipUtils'; +import { urlEncodeUrn } from '../../utils'; type Props = { entityUrn?: string; @@ -88,7 +89,7 @@ export const ExpandedOwner = ({ entityUrn, owner, hidePopOver, refetch }: Props) return ( - + {(hidePopOver && <>{name}) || (