Skip to content

Scheduling infrastructure for absolutely everyone.

Fix link ignoring app url on even-type (#773)

Eduardo M727793af02b9
diff --git a/pages/event-types/[type].tsx b/pages/event-types/[type].tsx
index 84cbd13c687..4a98ebc1510 100644
--- a/pages/event-types/[type].tsx
+++ b/pages/event-types/[type].tsx
@@ -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");
}}