fix: remove cal.com from title when branding is disabled (#7827)
Co-authored-by: sean-brydon <[email protected]> Co-authored-by: Peer Richelsen <[email protected]>
This commit is contained in:
2 files changed
+13
-2
No files matched your search
@@ -19,6 +19,7 @@ export type HeadSeoProps = {
|
||||
nextSeoProps?: NextSeoProps;
|
||||
app?: AppImageProps;
|
||||
meeting?: MeetingImageProps;
|
||||
isBrandingHidden?: boolean;
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -82,11 +83,20 @@ export const HeadSeo = (props: HeadSeoProps): JSX.Element => {
|
||||
// Set the default URL to either the current URL (if self-hosted) or https://cal.com canonical URL
|
||||
const defaultUrl = isCalcom ? calcomCanonical : url;
|
||||
|
||||
const { title, description, siteName, canonical = defaultUrl, nextSeoProps = {}, app, meeting } = props;
|
||||
const {
|
||||
title,
|
||||
description,
|
||||
siteName,
|
||||
canonical = defaultUrl,
|
||||
nextSeoProps = {},
|
||||
app,
|
||||
meeting,
|
||||
isBrandingHidden,
|
||||
} = props;
|
||||
|
||||
const image = getSeoImage("ogImage") + constructGenericImage({ title, description });
|
||||
const truncatedDescription = truncateOnWord(description, 158);
|
||||
const pageTitle = title + " | " + APP_NAME;
|
||||
const pageTitle = `${title}${isBrandingHidden ? "" : ` | ${APP_NAME}`}`;
|
||||
let seoObject = buildSeoMeta({
|
||||
title: pageTitle,
|
||||
image,
|
||||
|
||||
Reference in new issue
Block a user