From 104a668e45e4e02b4632038e327a56e31398c1a3 Mon Sep 17 00:00:00 2001 From: Jeremy Davis Date: Tue, 15 Sep 2020 17:08:37 +0200 Subject: [PATCH] SONAR-13870 Add referrer param to sonarqube.org links --- .../sonar-web/src/main/js/app/components/GlobalFooter.tsx | 2 +- .../src/main/js/app/components/GlobalFooterBranding.tsx | 2 +- .../__tests__/__snapshots__/GlobalFooter-test.tsx.snap | 6 +++--- .../js/app/components/embed-docs-modal/EmbedDocsPopup.tsx | 2 +- .../__tests__/__snapshots__/EmbedDocsPopup-test.tsx.snap | 2 +- .../system/components/system-upgrade/SystemUpgradeForm.tsx | 2 +- .../__tests__/__snapshots__/SystemUpgradeForm-test.tsx.snap | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/server/sonar-web/src/main/js/app/components/GlobalFooter.tsx b/server/sonar-web/src/main/js/app/components/GlobalFooter.tsx index d7fbfa9869e..02e1509599b 100644 --- a/server/sonar-web/src/main/js/app/components/GlobalFooter.tsx +++ b/server/sonar-web/src/main/js/app/components/GlobalFooter.tsx @@ -73,7 +73,7 @@ export default function GlobalFooter({ {translate('footer.license')}
  • - {translate('footer.community')} + {translate('footer.community')}
  • {translate('footer.documentation')} diff --git a/server/sonar-web/src/main/js/app/components/GlobalFooterBranding.tsx b/server/sonar-web/src/main/js/app/components/GlobalFooterBranding.tsx index 0978456a9e6..ae2d1ef0719 100644 --- a/server/sonar-web/src/main/js/app/components/GlobalFooterBranding.tsx +++ b/server/sonar-web/src/main/js/app/components/GlobalFooterBranding.tsx @@ -35,7 +35,7 @@ export default function GlobalFooterBranding() {
    This application is based on{' '} diff --git a/server/sonar-web/src/main/js/app/components/__tests__/__snapshots__/GlobalFooter-test.tsx.snap b/server/sonar-web/src/main/js/app/components/__tests__/__snapshots__/GlobalFooter-test.tsx.snap index 12382dfea44..ed878998720 100644 --- a/server/sonar-web/src/main/js/app/components/__tests__/__snapshots__/GlobalFooter-test.tsx.snap +++ b/server/sonar-web/src/main/js/app/components/__tests__/__snapshots__/GlobalFooter-test.tsx.snap @@ -32,7 +32,7 @@ exports[`should display the sq version 1`] = ` className="page-footer-menu-item" > footer.community @@ -114,7 +114,7 @@ exports[`should not render the only logged in information 1`] = ` className="page-footer-menu-item" > footer.community @@ -181,7 +181,7 @@ exports[`should render the only logged in information 1`] = ` className="page-footer-menu-item" > footer.community diff --git a/server/sonar-web/src/main/js/app/components/embed-docs-modal/EmbedDocsPopup.tsx b/server/sonar-web/src/main/js/app/components/embed-docs-modal/EmbedDocsPopup.tsx index d431460dada..5ba2398e234 100644 --- a/server/sonar-web/src/main/js/app/components/embed-docs-modal/EmbedDocsPopup.tsx +++ b/server/sonar-web/src/main/js/app/components/embed-docs-modal/EmbedDocsPopup.tsx @@ -117,7 +117,7 @@ export default class EmbedDocsPopup extends React.PureComponent { {this.renderTitle(translate('embed_docs.stay_connected'))}
  • {this.renderIconLink( - 'https://www.sonarqube.org/whats-new/', + 'https://www.sonarqube.org/whats-new/?referrer=sonarqube', 'embed-doc/sq-icon.svg', translate('embed_docs.news') )} diff --git a/server/sonar-web/src/main/js/app/components/embed-docs-modal/__tests__/__snapshots__/EmbedDocsPopup-test.tsx.snap b/server/sonar-web/src/main/js/app/components/embed-docs-modal/__tests__/__snapshots__/EmbedDocsPopup-test.tsx.snap index d2257ae1f84..29a379acaca 100644 --- a/server/sonar-web/src/main/js/app/components/embed-docs-modal/__tests__/__snapshots__/EmbedDocsPopup-test.tsx.snap +++ b/server/sonar-web/src/main/js/app/components/embed-docs-modal/__tests__/__snapshots__/EmbedDocsPopup-test.tsx.snap @@ -51,7 +51,7 @@ exports[`should render 1`] = `
  • diff --git a/server/sonar-web/src/main/js/apps/system/components/system-upgrade/SystemUpgradeForm.tsx b/server/sonar-web/src/main/js/apps/system/components/system-upgrade/SystemUpgradeForm.tsx index e47a3327e39..30da92c0673 100644 --- a/server/sonar-web/src/main/js/apps/system/components/system-upgrade/SystemUpgradeForm.tsx +++ b/server/sonar-web/src/main/js/apps/system/components/system-upgrade/SystemUpgradeForm.tsx @@ -66,7 +66,7 @@ export class SystemUpgradeForm extends React.PureComponent { {upgrading && } {translate('system.see_sonarqube_downloads')} diff --git a/server/sonar-web/src/main/js/apps/system/components/system-upgrade/__tests__/__snapshots__/SystemUpgradeForm-test.tsx.snap b/server/sonar-web/src/main/js/apps/system/components/system-upgrade/__tests__/__snapshots__/SystemUpgradeForm-test.tsx.snap index 6301f09e45c..7e777c5a4de 100644 --- a/server/sonar-web/src/main/js/apps/system/components/system-upgrade/__tests__/__snapshots__/SystemUpgradeForm-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/system/components/system-upgrade/__tests__/__snapshots__/SystemUpgradeForm-test.tsx.snap @@ -79,7 +79,7 @@ exports[`should display correctly 1`] = ` > -- 2.39.5