Disallow search engine indexing of hidden event types (#3478)
Co-authored-by: gitstart <[email protected]> Co-authored-by: Alex van Andel <[email protected]>
This commit is contained in:
3 files changed
+6
No files matched your search
@@ -382,6 +382,10 @@ const AvailabilityPage = ({ profile, eventType }: Props) => {
|
||||
description={`${rescheduleUid ? t("reschedule") : ""} ${eventType.title}`}
|
||||
name={profile.name || undefined}
|
||||
username={slug || undefined}
|
||||
nextSeoProps={{
|
||||
nofollow: eventType.hidden,
|
||||
noindex: eventType.hidden,
|
||||
}}
|
||||
/>
|
||||
<CustomBranding lightVal={profile.brandColor} darkVal={profile.darkBrandColor} />
|
||||
<div>
|
||||
|
||||
@@ -112,6 +112,7 @@ async function getUserPageProps(context: GetStaticPropsContext) {
|
||||
select: {
|
||||
title: true,
|
||||
slug: true,
|
||||
hidden: true,
|
||||
recurringEvent: true,
|
||||
length: true,
|
||||
locations: true,
|
||||
|
||||
@@ -48,6 +48,7 @@ export const getServerSideProps = async (context: GetServerSidePropsContext) =>
|
||||
select: {
|
||||
id: true,
|
||||
slug: true,
|
||||
hidden: true,
|
||||
users: {
|
||||
select: {
|
||||
id: true,
|
||||
|
||||
Reference in new issue
Block a user