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:
parent
3bd682f432
commit
c2a53bbf61
|
@ -155,10 +155,8 @@ export class DocViewerComponent implements OnDestroy {
|
|||
*/
|
||||
private setNoIndex(val: boolean) {
|
||||
if (val) {
|
||||
this.metaService.addTag({ name: 'googlebot', content: 'noindex' });
|
||||
this.metaService.addTag({ name: 'robots', content: 'noindex' });
|
||||
} else {
|
||||
this.metaService.removeTag('name="googlebot"');
|
||||
this.metaService.removeTag('name="robots"');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -33,8 +33,6 @@
|
|||
|
||||
<script>
|
||||
// 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';
|
||||
document.head.appendChild(tag);
|
||||
</script>
|
||||
|
|
Loading…
Reference in New Issue