Skip to content

Commit

Permalink
fix(aio): remove additional 'googlebot' reference (#23249)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
amitport authored and IgorMinar committed Apr 13, 2018
1 parent 3bd682f commit c2a53bb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions aio/src/app/layout/doc-viewer/doc-viewer.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"');
}
}
Expand Down
2 changes: 0 additions & 2 deletions aio/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit c2a53bb

Please sign in to comment.