Fix link ignoring app url on even-type (#773)
parent
9e7cb2c0b8
commit
727793af02
|
@ -995,10 +995,10 @@ const EventTypePage = (props: inferSSRProps<typeof getServerSideProps>) => {
|
|||
<button
|
||||
onClick={() => {
|
||||
navigator.clipboard.writeText(
|
||||
"https://cal.com/" +
|
||||
(team ? "team/" + team.slug : eventType.users[0].username) +
|
||||
"/" +
|
||||
eventType.slug
|
||||
(`${process.env.NEXT_PUBLIC_APP_URL}/` ?? "https://cal.com/") +
|
||||
(team ? "team/" + team.slug : eventType.users[0].username) +
|
||||
"/" +
|
||||
eventType.slug
|
||||
);
|
||||
showToast("Link copied!", "success");
|
||||
}}
|
||||
|
|
Loading…
Reference in New Issue