]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-12695 Add a single Community link in the footer
authorWouter Admiraal <wouter.admiraal@sonarsource.com>
Thu, 1 Oct 2020 09:22:12 +0000 (11:22 +0200)
committersonartech <sonartech@sonarsource.com>
Fri, 2 Oct 2020 20:07:42 +0000 (20:07 +0000)
server/sonar-web/src/main/js/app/components/GlobalFooter.tsx
server/sonar-web/src/main/js/app/components/__tests__/__snapshots__/GlobalFooter-test.tsx.snap
sonar-core/src/main/resources/org/sonar/l10n/core.properties

index 02e1509599baa4f49a93c6b4837c1e6c85092988..63e806e974d8f430c15aaf4b7ae08822c3930d51 100644 (file)
@@ -70,21 +70,29 @@ export default function GlobalFooter({
           </li>
         )}
         <li className="page-footer-menu-item">
-          <a href="http://www.gnu.org/licenses/lgpl-3.0.txt">{translate('footer.license')}</a>
+          <a
+            href="http://www.gnu.org/licenses/lgpl-3.0.txt"
+            rel="noopener noreferrer"
+            target="_blank">
+            {translate('footer.license')}
+          </a>
         </li>
         <li className="page-footer-menu-item">
-          <a href="http://www.sonarqube.org?referrer=sonarqube">{translate('footer.community')}</a>
+          <a
+            href="https://community.sonarsource.com/c/help/sq"
+            rel="noopener noreferrer"
+            target="_blank">
+            {translate('footer.community')}
+          </a>
         </li>
         <li className="page-footer-menu-item">
           <Link to="/documentation">{translate('footer.documentation')}</Link>
         </li>
         <li className="page-footer-menu-item">
-          <a href="https://redirect.sonarsource.com/doc/community.html">
-            {translate('footer.support')}
-          </a>
-        </li>
-        <li className="page-footer-menu-item">
-          <a href="https://redirect.sonarsource.com/doc/plugin-library.html">
+          <a
+            href="https://redirect.sonarsource.com/doc/plugin-library.html"
+            rel="noopener noreferrer"
+            target="_blank">
             {translate('footer.plugins')}
           </a>
         </li>
index ed878998720b04d1d28c4cd6889e9fc2f1b67be6..cb115f4ab66c5559e4b4ac8717a4ddd52e9cbdae 100644 (file)
@@ -24,6 +24,8 @@ exports[`should display the sq version 1`] = `
     >
       <a
         href="http://www.gnu.org/licenses/lgpl-3.0.txt"
+        rel="noopener noreferrer"
+        target="_blank"
       >
         footer.license
       </a>
@@ -32,7 +34,9 @@ exports[`should display the sq version 1`] = `
       className="page-footer-menu-item"
     >
       <a
-        href="http://www.sonarqube.org?referrer=sonarqube"
+        href="https://community.sonarsource.com/c/help/sq"
+        rel="noopener noreferrer"
+        target="_blank"
       >
         footer.community
       </a>
@@ -48,20 +52,13 @@ exports[`should display the sq version 1`] = `
         footer.documentation
       </Link>
     </li>
-    <li
-      className="page-footer-menu-item"
-    >
-      <a
-        href="https://redirect.sonarsource.com/doc/community.html"
-      >
-        footer.support
-      </a>
-    </li>
     <li
       className="page-footer-menu-item"
     >
       <a
         href="https://redirect.sonarsource.com/doc/plugin-library.html"
+        rel="noopener noreferrer"
+        target="_blank"
       >
         footer.plugins
       </a>
@@ -106,6 +103,8 @@ exports[`should not render the only logged in information 1`] = `
     >
       <a
         href="http://www.gnu.org/licenses/lgpl-3.0.txt"
+        rel="noopener noreferrer"
+        target="_blank"
       >
         footer.license
       </a>
@@ -114,7 +113,9 @@ exports[`should not render the only logged in information 1`] = `
       className="page-footer-menu-item"
     >
       <a
-        href="http://www.sonarqube.org?referrer=sonarqube"
+        href="https://community.sonarsource.com/c/help/sq"
+        rel="noopener noreferrer"
+        target="_blank"
       >
         footer.community
       </a>
@@ -130,20 +131,13 @@ exports[`should not render the only logged in information 1`] = `
         footer.documentation
       </Link>
     </li>
-    <li
-      className="page-footer-menu-item"
-    >
-      <a
-        href="https://redirect.sonarsource.com/doc/community.html"
-      >
-        footer.support
-      </a>
-    </li>
     <li
       className="page-footer-menu-item"
     >
       <a
         href="https://redirect.sonarsource.com/doc/plugin-library.html"
+        rel="noopener noreferrer"
+        target="_blank"
       >
         footer.plugins
       </a>
@@ -173,6 +167,8 @@ exports[`should render the only logged in information 1`] = `
     >
       <a
         href="http://www.gnu.org/licenses/lgpl-3.0.txt"
+        rel="noopener noreferrer"
+        target="_blank"
       >
         footer.license
       </a>
@@ -181,7 +177,9 @@ exports[`should render the only logged in information 1`] = `
       className="page-footer-menu-item"
     >
       <a
-        href="http://www.sonarqube.org?referrer=sonarqube"
+        href="https://community.sonarsource.com/c/help/sq"
+        rel="noopener noreferrer"
+        target="_blank"
       >
         footer.community
       </a>
@@ -197,20 +195,13 @@ exports[`should render the only logged in information 1`] = `
         footer.documentation
       </Link>
     </li>
-    <li
-      className="page-footer-menu-item"
-    >
-      <a
-        href="https://redirect.sonarsource.com/doc/community.html"
-      >
-        footer.support
-      </a>
-    </li>
     <li
       className="page-footer-menu-item"
     >
       <a
         href="https://redirect.sonarsource.com/doc/plugin-library.html"
+        rel="noopener noreferrer"
+        target="_blank"
       >
         footer.plugins
       </a>
index e1c614546711ac024325c8fefd25eb14dbe146c2..16c432c77d0c2c1126d59969347df5d199923943 100644 (file)
@@ -3102,7 +3102,6 @@ footer.privacy=Privacy
 footer.production_database_explanation=The embedded database will not scale, it will not support upgrading to newer versions of {instance}, and there is no support for migrating your data out of it into a different database engine.
 footer.production_database_warning=Embedded database should be used for evaluation purposes only
 footer.security=Security
-footer.support=Get Support
 footer.status=Status
 footer.terms=Terms
 footer.twitter=Twitter