diff --git a/workspaces/website/src/pages/content/@slug/SocialShare/SocialShare.tsx b/workspaces/website/src/pages/content/@slug/SocialShare/SocialShare.tsx index 0b94619cfa..30e46fe3b7 100644 --- a/workspaces/website/src/pages/content/@slug/SocialShare/SocialShare.tsx +++ b/workspaces/website/src/pages/content/@slug/SocialShare/SocialShare.tsx @@ -1,5 +1,9 @@ import { Flex, Icon, Text } from "@chakra-ui/react"; -import { TwitterShareButton, TelegramShareButton } from "react-share"; +import { + TwitterShareButton, + TelegramShareButton, + LinkedinShareButton, +} from "react-share"; import { FaTelegram } from "react-icons/fa"; import { FaTwitter } from "react-icons/fa"; import { FaLinkedin } from "react-icons/fa"; @@ -11,7 +15,7 @@ interface Props { } const SocialShare = ({ params: { slug, locale } }: Props) => { - const shareUrl = `${import.meta.env.VITE_SITE_URL}${locale}/content/${slug}`; + const shareUrl = `${import.meta.env.VITE_SITE_URL}/${locale}/content/${slug}`; const encodedUrl = encodeURIComponent(shareUrl); const linkedinShareUrl = `https://www.linkedin.com/sharing/share-offsite/?url=${encodedUrl}`; const handleLinkedinShare = () => window.open(linkedinShareUrl, "_blank"); @@ -27,38 +31,36 @@ const SocialShare = ({ params: { slug, locale } }: Props) => { - + - + - + + + );