You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ZCU-PUB/Add a configurable noindex meta tag for item pages
Adds item.noIndex - a list of item uuids or handles whose item page gets
<meta name="robots" content="noindex, noarchive"> and has its citation_pdf_url
dropped. Non-discoverable items get the tag too.
Server-side rendered, so crawlers see the tag in the first HTML response.
Emitted via addMetaTag() so clearMetaTags() removes it on the next route
change instead of leaking it onto every page visited afterwards. No nofollow:
crawlers should keep following bitstream links to pick up the X-Robots-Tag
served for the files.
Ships with an empty list on purpose - this config is transferred to the
browser unsanitized, so entries would be publicly readable in every page's
HTML. Guards on Array.isArray() because a misconfigured scalar would otherwise
throw from the first statement of setDSOMetaTags() and strip the meta tags off
every page.
Tests: metadata.service.spec.ts 31 SUCCESS (19 existing + 12 new); reverting
the production change turns 6 of them red.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
0 commit comments