]> source.dussan.org Git - sonarqube.git/commitdiff
SONARCLOUD-100 Remove noindex nofollow meta for SonarCloud documentation
authorGrégoire Aubert <gregoire.aubert@sonarsource.com>
Wed, 18 Jul 2018 16:00:20 +0000 (18:00 +0200)
committerSonarTech <sonartech@sonarsource.com>
Thu, 19 Jul 2018 18:21:26 +0000 (20:21 +0200)
server/sonar-web/src/main/js/apps/documentation/components/App.tsx

index fa721d22893eb862ec9c6c9c6b3638acbce64028..24ae4b319547a8a9f74d7d45c7c31c538d73bca1 100644 (file)
@@ -116,7 +116,7 @@ export default class App extends React.PureComponent<Props, State> {
     return (
       <div className="layout-page">
         <Helmet title={isIndex || this.state.notFound ? mainTitle : `${pageTitle} - ${mainTitle}`}>
-          <meta content="noindex nofollow" name="robots" />
+          {!isSonarCloud() && <meta content="noindex nofollow" name="robots" />}
         </Helmet>
         <ScreenPositionHelper className="layout-page-side-outer">
           {({ top }) => (