]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-12401 Footer Documentation link should point to embedded doc
authorWouter Admiraal <wouter.admiraal@sonarsource.com>
Thu, 15 Aug 2019 10:04:47 +0000 (12:04 +0200)
committerSonarTech <sonartech@sonarsource.com>
Tue, 20 Aug 2019 18:21:04 +0000 (20:21 +0200)
server/sonar-web/src/main/js/app/components/GlobalFooter.tsx
server/sonar-web/src/main/js/app/components/__tests__/__snapshots__/GlobalFooter-test.tsx.snap

index 48a6b09c2a588361962ea738f97f2ff3379db2cd..49b5609512a8a356773e8eaa3bef26020b32dfa0 100644 (file)
@@ -75,9 +75,7 @@ export default function GlobalFooter({
           <a href="http://www.sonarqube.org">{translate('footer.community')}</a>
         </li>
         <li className="page-footer-menu-item">
-          <a href="https://redirect.sonarsource.com/doc/home.html">
-            {translate('footer.documentation')}
-          </a>
+          <Link to="/documentation">{translate('footer.documentation')}</Link>
         </li>
         <li className="page-footer-menu-item">
           <a href="https://redirect.sonarsource.com/doc/community.html">
index 43e65baec7c38718baa64c86afe13ce66db8afd8..12382dfea44ccf323ad75993526fc14634ca14f9 100644 (file)
@@ -40,11 +40,13 @@ exports[`should display the sq version 1`] = `
     <li
       className="page-footer-menu-item"
     >
-      <a
-        href="https://redirect.sonarsource.com/doc/home.html"
+      <Link
+        onlyActiveOnIndex={false}
+        style={Object {}}
+        to="/documentation"
       >
         footer.documentation
-      </a>
+      </Link>
     </li>
     <li
       className="page-footer-menu-item"
@@ -120,11 +122,13 @@ exports[`should not render the only logged in information 1`] = `
     <li
       className="page-footer-menu-item"
     >
-      <a
-        href="https://redirect.sonarsource.com/doc/home.html"
+      <Link
+        onlyActiveOnIndex={false}
+        style={Object {}}
+        to="/documentation"
       >
         footer.documentation
-      </a>
+      </Link>
     </li>
     <li
       className="page-footer-menu-item"
@@ -185,11 +189,13 @@ exports[`should render the only logged in information 1`] = `
     <li
       className="page-footer-menu-item"
     >
-      <a
-        href="https://redirect.sonarsource.com/doc/home.html"
+      <Link
+        onlyActiveOnIndex={false}
+        style={Object {}}
+        to="/documentation"
       >
         footer.documentation
-      </a>
+      </Link>
     </li>
     <li
       className="page-footer-menu-item"