]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-12605 About page's documentation link should redirect to the embedded documentation
authorPhilippe Perrin <philippe.perrin@sonarsource.com>
Mon, 21 Oct 2019 09:40:13 +0000 (11:40 +0200)
committerSonarTech <sonartech@sonarsource.com>
Thu, 24 Oct 2019 18:21:11 +0000 (20:21 +0200)
server/sonar-web/src/main/js/apps/about/components/AboutApp.tsx
server/sonar-web/src/main/js/apps/about/components/__tests__/__snapshots__/AboutApp-test.tsx.snap

index b29f0a2edb264d73f0303ea74a1d3328aa8d9db2..f404aff339c3449d4f8c4007e6df8306c48c7bcf 100644 (file)
@@ -136,13 +136,9 @@ export class AboutApp extends React.PureComponent<Props, State> {
                   {translate('layout.login')}
                 </Link>
               )}
-              <a
-                className="button"
-                href="https://redirect.sonarsource.com/doc/home.html"
-                rel="noopener noreferrer"
-                target="_blank">
+              <Link className="button" to="/documentation">
                 {translate('about_page.read_documentation')}
-              </a>
+              </Link>
             </div>
 
             <div className="about-page-instance">
index a7785c97c98daf3821b6d3908175347c85e79a3d..f1fe792370d5679120feee49881df1b8efcd9b58 100644 (file)
@@ -40,14 +40,14 @@ exports[`should render correctly 1`] = `
         >
           layout.login
         </Link>
-        <a
+        <Link
           className="button"
-          href="https://redirect.sonarsource.com/doc/home.html"
-          rel="noopener noreferrer"
-          target="_blank"
+          onlyActiveOnIndex={false}
+          style={Object {}}
+          to="/documentation"
         >
           about_page.read_documentation
-        </a>
+        </Link>
       </div>
       <div
         className="about-page-instance"