Disallow search engine indexing of hidden event types (#3478)
Co-authored-by: gitstart <gitstart@users.noreply.github.com> Co-authored-by: Alex van Andel <me@alexvanandel.com>pull/3527/head
parent
a156a784a1
commit
629131b7f9
|
@ -382,6 +382,10 @@ const AvailabilityPage = ({ profile, eventType }: Props) => {
|
||||||
description={`${rescheduleUid ? t("reschedule") : ""} ${eventType.title}`}
|
description={`${rescheduleUid ? t("reschedule") : ""} ${eventType.title}`}
|
||||||
name={profile.name || undefined}
|
name={profile.name || undefined}
|
||||||
username={slug || undefined}
|
username={slug || undefined}
|
||||||
|
nextSeoProps={{
|
||||||
|
nofollow: eventType.hidden,
|
||||||
|
noindex: eventType.hidden,
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
<CustomBranding lightVal={profile.brandColor} darkVal={profile.darkBrandColor} />
|
<CustomBranding lightVal={profile.brandColor} darkVal={profile.darkBrandColor} />
|
||||||
<div>
|
<div>
|
||||||
|
|
|
@ -112,6 +112,7 @@ async function getUserPageProps(context: GetStaticPropsContext) {
|
||||||
select: {
|
select: {
|
||||||
title: true,
|
title: true,
|
||||||
slug: true,
|
slug: true,
|
||||||
|
hidden: true,
|
||||||
recurringEvent: true,
|
recurringEvent: true,
|
||||||
length: true,
|
length: true,
|
||||||
locations: true,
|
locations: true,
|
||||||
|
|
|
@ -48,6 +48,7 @@ export const getServerSideProps = async (context: GetServerSidePropsContext) =>
|
||||||
select: {
|
select: {
|
||||||
id: true,
|
id: true,
|
||||||
slug: true,
|
slug: true,
|
||||||
|
hidden: true,
|
||||||
users: {
|
users: {
|
||||||
select: {
|
select: {
|
||||||
id: true,
|
id: true,
|
||||||
|
|
Loading…
Reference in New Issue