-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix LinkedIn URL special character formatting #7249
Fix LinkedIn URL special character formatting #7249
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR Summary
This pull request addresses the formatting of LinkedIn URLs containing special characters, improving the display of profile identifiers.
- Modified
packages/twenty-front/src/utils/getDisplayValueByUrlType.ts
to usedecodeURIComponent()
for LinkedIn URLs - Enhances readability of LinkedIn profile names and company identifiers with encoded characters
- Affects components using
getDisplayValueByUrlType()
, such as LinkDisplay, URLDisplay, and SocialLink - Improves user experience by showing more accurate LinkedIn URL representations
- Visual improvement demonstrated in before/after screenshots in the pull request description
1 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings
@@ -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]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! @bosiraphael
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thank you @ad-elias for your contribution :)
Thanks @ad-elias for your contribution! |
Before:
After: