Skip to content

Scheduling infrastructure for absolutely everyone.

fix: set canonical to https://cal.com on .dev as well (#7883)

Richard Poelderl4e2473531f09
diff --git a/packages/ui/components/head-seo/HeadSeo.tsx b/packages/ui/components/head-seo/HeadSeo.tsx
index 4d6a5e91bd5..1cdb89da876 100644
--- a/packages/ui/components/head-seo/HeadSeo.tsx
+++ b/packages/ui/components/head-seo/HeadSeo.tsx
@@ -75,7 +75,8 @@ export const HeadSeo = (props: HeadSeoProps): JSX.Element => {
// Get the current URL from the window object
const url = getBrowserInfo()?.url;
// Check if the URL is from cal.com
- const isCalcom = url && new URL(url).hostname.endsWith("cal.com");
+ const isCalcom =
+ url && (new URL(url).hostname.endsWith("cal.com") || new URL(url).hostname.endsWith("cal.dev"));
// Get the router's path
const path = useRouter().asPath;
// Build the canonical URL using the router's path, without query parameters. Note: on homepage it omits the trailing slash