From 3852fab0f025560ce085c35f9e37fc37a7b917d2 Mon Sep 17 00:00:00 2001 From: Wouter Admiraal Date: Thu, 16 Sep 2021 15:24:51 +0200 Subject: [PATCH] SONAR-15404 Fix documentation tooltip links when running in a web context --- .../components/common/DocumentationTooltip.tsx | 6 +++--- .../DocumentationTooltip-test.tsx.snap | 16 ++++++++++------ 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/server/sonar-web/src/main/js/components/common/DocumentationTooltip.tsx b/server/sonar-web/src/main/js/components/common/DocumentationTooltip.tsx index 62de7cb0281..57d2d3738ad 100644 --- a/server/sonar-web/src/main/js/components/common/DocumentationTooltip.tsx +++ b/server/sonar-web/src/main/js/components/common/DocumentationTooltip.tsx @@ -58,14 +58,14 @@ export default function DocumentationTooltip(props: DocumentationTooltipProps) { {label} ) : ( - {isWebUri(href) && } {label} - + )} ))} diff --git a/server/sonar-web/src/main/js/components/common/__tests__/__snapshots__/DocumentationTooltip-test.tsx.snap b/server/sonar-web/src/main/js/components/common/__tests__/__snapshots__/DocumentationTooltip-test.tsx.snap index 522d6cfee3b..6dcf00334b3 100644 --- a/server/sonar-web/src/main/js/components/common/__tests__/__snapshots__/DocumentationTooltip-test.tsx.snap +++ b/server/sonar-web/src/main/js/components/common/__tests__/__snapshots__/DocumentationTooltip-test.tsx.snap @@ -76,11 +76,13 @@ exports[`renders correctly: with links 1`] = `
- external link - +
- internal link - +