0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Fixed offer Code url

This commit is contained in:
Princi Vershwal 2023-11-09 13:30:56 +05:30 committed by GitHub
parent 1e8176f596
commit 15d74b2840
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,7 +19,7 @@ const Sidebar: React.FC<{
const {siteData} = useGlobalData();
const [isCopied, setIsCopied] = useState(false);
const offerUrl = `${getHomepageUrl(siteData!)}/#/portal/offers/${offer?.code}`;
const offerUrl = `${getHomepageUrl(siteData!)}${offer?.code}`;
const handleCopyClick = async () => {
try {
await navigator.clipboard.writeText(offerUrl);