fix(aio): remove additional 'googlebot' reference (#23249)

according to https://developers.google.com/search/reference/robots_meta_tag
googlebot is only used as a google specific override of 'robots'- there's no need for override in this case

PR Close #23249
This commit is contained in:
Amit Portnoy 2018-04-08 14:11:49 +03:00 committed by Igor Minar
parent 3bd682f432
commit c2a53bbf61
2 changed files with 0 additions and 4 deletions

View File

@ -155,10 +155,8 @@ export class DocViewerComponent implements OnDestroy {
*/ */
private setNoIndex(val: boolean) { private setNoIndex(val: boolean) {
if (val) { if (val) {
this.metaService.addTag({ name: 'googlebot', content: 'noindex' });
this.metaService.addTag({ name: 'robots', content: 'noindex' }); this.metaService.addTag({ name: 'robots', content: 'noindex' });
} else { } else {
this.metaService.removeTag('name="googlebot"');
this.metaService.removeTag('name="robots"'); this.metaService.removeTag('name="robots"');
} }
} }

View File

@ -33,8 +33,6 @@
<script> <script>
// Dynamically, pre-emptively, add `noindex`, which will be removed when the doc is ready and valid // Dynamically, pre-emptively, add `noindex`, which will be removed when the doc is ready and valid
var tag = document.createElement('meta'); tag.name = 'googlebot'; tag.content = 'noindex';
document.head.appendChild(tag);
tag = document.createElement('meta'); tag.name = 'robots'; tag.content = 'noindex'; tag = document.createElement('meta'); tag.name = 'robots'; tag.content = 'noindex';
document.head.appendChild(tag); document.head.appendChild(tag);
</script> </script>