File tree 1 file changed +6
-5
lines changed
packages/nextjs/src/components/_common/metatags
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -23,13 +23,14 @@ const getDescription = (content: ContentProps) => {
23
23
return description . slice ( 0 , DESCRIPTION_MAX_LENGTH ) ;
24
24
} ;
25
25
26
- const contentTypesWithNoIndex = new Set ( [ ContentType . Error , ContentType . FormIntermediateStepPage ] ) ;
26
+ const contentTypesWithNoIndex = new Set ( [
27
+ ContentType . Error ,
28
+ ContentType . FormIntermediateStepPage ,
29
+ ContentType . ContactStepPage ,
30
+ ] ) ;
27
31
28
32
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 ;
33
34
34
35
const getCanonicalUrl = ( content : ContentProps ) => {
35
36
return content . data ?. canonicalUrl || `${ appOrigin } ${ getPublicPathname ( content ) } ` ;
You can’t perform that action at this time.
0 commit comments