angular-docs-cn/aio/e2e
Pete Bacon Darwin 88045a5050 feat(aio): update metatags to control search engine crawling (#21665)
The `<meta name="robots" content="noindex">` tag is used
to indicate to search engine crawlers that they should not index
the current page. This is set dynamically by the the document
viewer component to ensure that 404 and other erroring pages
are not added to the search index.

This relies upon the idea that the crawling bot will run the JS
and wait to see if this meta tag has been added or not.

Since we believe that the `googebot` will do this, we also
pre-emptively add a hard-coded noindex tag specifically for
this bot, so that if anything else fails in bootstrapping the app,
the failed page will not be added to the index.

Closes #21317

PR Close #21665
2018-01-19 20:30:02 -08:00
..
api.e2e-spec.ts test(aio): fix e2e API test due to #20607 (#20661) 2017-11-29 16:53:04 -06:00
api.po.ts style(aio): enforce strict TypeScript checks (#21342) 2018-01-12 14:36:43 -08:00
app.e2e-spec.ts feat(aio): update metatags to control search engine crawling (#21665) 2018-01-19 20:30:02 -08:00
app.po.ts style(aio): enforce strict TypeScript checks (#21342) 2018-01-12 14:36:43 -08:00
tsconfig.e2e.json build(aio): use correct types for e2e tests 2017-11-03 11:22:41 -07:00