Skip to content

Commit c9e882f

Browse files
ad-eliasehconitin
andauthored
Fix LinkedIn URL special character formatting (#7249)
Before: <img width="348" alt="link-formatting-before" src="https://github.com/user-attachments/assets/500344e9-09f2-4a3e-99cc-6a3f1eb2685b"> After: <img width="348" alt="linkedin-formatting-after" src="https://github.com/user-attachments/assets/b5d845c8-8f25-493b-8fe1-ed79f3c0bbdd"> Co-authored-by: Nitin Koche <[email protected]>
1 parent 7752510 commit c9e882f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/twenty-front/src/utils/getDisplayValueByUrlType.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export const getDisplayValueByUrlType = ({
1616
/(?:https?:\/\/)?(?:www.)?linkedin.com\/(?:in|company|school)\/(.*)/,
1717
);
1818
if (isDefined(matches?.[1])) {
19-
return matches?.[1];
19+
return decodeURIComponent(matches?.[1]);
2020
} else {
2121
return 'LinkedIn';
2222
}

0 commit comments

Comments
 (0)