seo(codev): /codev indexable (la recette est publique depuis le lot Y), ses sous-pages restent hors index (checkpoint du 03/11)
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PWGVn3kY4vPBaWF9EFkZbz
This commit is contained in:
co-authored by
Claude Fable 5.1
parent
f6a9f44cff
commit
bd97649267
@@ -60,7 +60,7 @@ const NI = 'noindex, follow'
|
||||
const robotsCas = [
|
||||
[AEP, '/', null], [AEP, '/agences', null], [AEP, '/fiche/12', null], [AEP, '/entree', null],
|
||||
[AEP, '/signaler', NI], [AEP, '/ajouter', NI], [AEP, '/proposer', NI],
|
||||
[AEP, '/dev/fiche-mini-card', NI], [AEP, '/codev', NI], [AEP, '/codev/demo', NI],
|
||||
[AEP, '/dev/fiche-mini-card', NI], [AEP, '/codev', null], [AEP, '/codev/acces', NI], [AEP, '/codev/fiche', NI], [AEP, '/codev/demo', NI],
|
||||
[AEP, '/codevelopper', null],
|
||||
[AEP, '/evenements/ruetz', NI], [EVT, '/ruetz', null], [EVT, '/evenements/ruetz', null],
|
||||
]
|
||||
@@ -115,7 +115,7 @@ const routes = ['/', '/a-propos', '/agences', '/ajouter', '/codev', '/codev/cart
|
||||
'/dev/fiche-mini-card', '/entree', '/fiche/:id()', '/manifeste', '/media', '/outils', '/proposer', '/rag',
|
||||
'/signaler', '/trouver-du-taf', '/evenements', '/evenements/ruetz', '/evenements/:slug()']
|
||||
egal('sitemap aep', cheminsSitemap(routes, AEP),
|
||||
['/', '/a-propos', '/agences', '/entree', '/manifeste', '/media', '/outils', '/trouver-du-taf'])
|
||||
['/', '/a-propos', '/agences', '/codev', '/entree', '/manifeste', '/media', '/outils', '/trouver-du-taf'])
|
||||
egal('sitemap event', cheminsSitemap(routes, EVT), ['/', '/ruetz'])
|
||||
|
||||
const xml = sitemapXml([{ loc: `${A}/` }, { loc: `${A}/fiche/1?a=1&b=2`, lastmod: '2026-10-01' }])
|
||||
@@ -163,7 +163,8 @@ if (base) {
|
||||
egal('HTTP / : canonique, pas de robots', [canon(hAcc), rob(hAcc)], [`${A}/`, null])
|
||||
const hFiche = await page('/?fiche=108&vue=fiches')
|
||||
egal('HTTP /?fiche=108 → /fiche/108', canon(hFiche), `${A}/fiche/108`)
|
||||
for (const p of ['/signaler', '/ajouter', '/proposer', '/codev']) egal(`HTTP ${p} noindex`, rob(await page(p)), NI)
|
||||
for (const p of ['/signaler', '/ajouter', '/proposer', '/codev/acces']) egal(`HTTP ${p} noindex`, rob(await page(p)), NI)
|
||||
egal('HTTP /codev : indexable (recette publique, lot Y)', rob(await page('/codev')), null)
|
||||
const rApi = await get('/api/stats')
|
||||
egal('HTTP /api/stats X-Robots-Tag', rApi.headers.get('x-robots-tag'), 'noindex')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user