Skip to content

Scheduling infrastructure for absolutely everyone.

replaced another location.hostname, deleted DonateBanner (#834)

Peer Richelsen3d3e99272af0
diff --git a/pages/event-types/[type].tsx b/pages/event-types/[type].tsx
index d5473b01c41..0dd007c9ef8 100644
--- a/pages/event-types/[type].tsx
+++ b/pages/event-types/[type].tsx
@@ -385,7 +385,7 @@ const EventTypePage = (props: inferSSRProps<typeof getServerSideProps>) => {
<div className="w-full">
<div className="flex rounded-sm shadow-sm">
<span className="inline-flex items-center px-3 text-gray-500 border border-r-0 border-gray-300 rounded-l-sm bg-gray-50 sm:text-sm">
- {typeof location !== "undefined" ? location.hostname : ""}/
+ {process.env.NEXT_PUBLIC_APP_URL?.replace(/^(https?:|)\/\//, "")}/
{team ? "team/" + team.slug : eventType.users[0].username}/
</span>
<input