Skip to content

Commit 7e30467

Browse files
committed
fikset noindex
1 parent 04a1ed1 commit 7e30467

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

packages/nextjs/src/components/_common/metatags/HeadWithMetatags.tsx

+6-5
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,14 @@ const getDescription = (content: ContentProps) => {
2323
return description.slice(0, DESCRIPTION_MAX_LENGTH);
2424
};
2525

26-
const contentTypesWithNoIndex = new Set([ContentType.Error, ContentType.FormIntermediateStepPage]);
26+
const contentTypesWithNoIndex = new Set([
27+
ContentType.Error,
28+
ContentType.FormIntermediateStepPage,
29+
ContentType.ContactStepPage,
30+
]);
2731

2832
const isNoIndex = (content: ContentProps) =>
29-
content.isPagePreview ||
30-
contentTypesWithNoIndex.has(content.type) ||
31-
content.data?.noindex ||
32-
content.type === 'no.nav.navno:contact-step-page';
33+
content.isPagePreview || contentTypesWithNoIndex.has(content.type) || content.data?.noindex;
3334

3435
const getCanonicalUrl = (content: ContentProps) => {
3536
return content.data?.canonicalUrl || `${appOrigin}${getPublicPathname(content)}`;

0 commit comments

Comments
 (0)