Skip to content

Commit

Permalink
Merge pull request #943 from prezly/feature/dev-19087-lena-theme-miss…
Browse files Browse the repository at this point in the history
…ing-website-links-in-contact-cards

[DEV-19087] Fix - Use website.hostname for website name
  • Loading branch information
fgyimah authored Feb 4, 2025
2 parents 7f4fa9f + 544acad commit 0066e27
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions components/ContactCard/ContactCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,7 @@ function ContactCard({ className, contactInfo, layout, renderAvatar, showAvatar,
{website && isCard && (
<a href={website.toString()} className={styles.link} title="Website">
<IconGlobe width={16} height={16} className={styles.icon} />
<span className={styles.linkText}>
{website.toString().replace(/(^\w+:|^)\/\//, '')}
</span>
<span className={styles.linkText}>{website.hostname}</span>
</a>
)}
{facebook && (
Expand Down

0 comments on commit 0066e27

Please sign in to comment.