Skip to content

Commit

Permalink
fix: remove nofollow (#1138)
Browse files Browse the repository at this point in the history
  • Loading branch information
XavierJp authored Jul 18, 2024
1 parent 321b002 commit e89eb12
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 18 deletions.
2 changes: 1 addition & 1 deletion app/(header-default)/divers/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const generateMetadata = async (
session
)}`,
description: uniteLegalePageDescription(uniteLegale, session),
robots: 'noindex, nofollow',
robots: 'noindex',
alternates: {
canonical: `https://annuaire-entreprises.data.gouv.fr/divers/${uniteLegale.siren}`,
},
Expand Down
22 changes: 5 additions & 17 deletions app/(header-default)/elus/[slug]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,26 +1,14 @@
import { GetServerSideProps, Metadata } from 'next';
import Meta from '#components/meta/meta-client';
import { Metadata } from 'next';
import Title from '#components/title-section';
import { FICHE } from '#components/title-section/tabs';
import { getNomComplet } from '#models/core/statut-diffusion';
import { IUniteLegale } from '#models/core/types';
import { getUniteLegaleFromSlug } from '#models/core/unite-legale';
import extractParamsPageRouter from '#utils/server-side-helper/page/extract-params';
import {
IPropsWithMetadata,
postServerSideProps,
} from '#utils/server-side-helper/page/post-server-side-props';
import ElusSection from 'app/(header-default)/elus/_component/section/elus-section';
import { NextPageWithLayout } from 'pages/_app';
import { uniteLegalePageDescription } from '#utils/helpers';
import { cachedGetUniteLegale } from '#utils/server-side-helper/app/cached-methods';
import extractParamsAppRouter, {
AppRouterProps,
} from '#utils/server-side-helper/app/extract-params';
import { cachedGetUniteLegale } from '#utils/server-side-helper/app/cached-methods';
import getSession from '#utils/server-side-helper/app/get-session';
import {
uniteLegalePageDescription,
uniteLegalePageTitle,
} from '#utils/helpers';
import ElusSection from 'app/(header-default)/elus/_component/section/elus-section';

export const generateMetadata = async (
props: AppRouterProps
Expand All @@ -35,7 +23,7 @@ export const generateMetadata = async (
uniteLegale.siren
}`,
description: uniteLegalePageDescription(uniteLegale, session),
robots: 'noindex, nofollow',
robots: 'noindex',
alternates: {
canonical: `https://annuaire-entreprises.data.gouv.fr/elus/${uniteLegale.siren}`,
},
Expand Down

0 comments on commit e89eb12

Please sign in to comment.