From c9e882f4c071b15b109bf649133230a019fcc452 Mon Sep 17 00:00:00 2001 From: ad-elias Date: Wed, 25 Sep 2024 18:40:04 +0200 Subject: [PATCH] Fix LinkedIn URL special character formatting (#7249) Before: link-formatting-before After: linkedin-formatting-after Co-authored-by: Nitin Koche --- packages/twenty-front/src/utils/getDisplayValueByUrlType.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/twenty-front/src/utils/getDisplayValueByUrlType.ts b/packages/twenty-front/src/utils/getDisplayValueByUrlType.ts index 75cf16fa1..5e5087d5c 100644 --- a/packages/twenty-front/src/utils/getDisplayValueByUrlType.ts +++ b/packages/twenty-front/src/utils/getDisplayValueByUrlType.ts @@ -16,7 +16,7 @@ export const getDisplayValueByUrlType = ({ /(?:https?:\/\/)?(?:www.)?linkedin.com\/(?:in|company|school)\/(.*)/, ); if (isDefined(matches?.[1])) { - return matches?.[1]; + return decodeURIComponent(matches?.[1]); } else { return 'LinkedIn'; }