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:
parent
1e8176f596
commit
15d74b2840
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue