]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-15587 icon url handles base url
authorJeremy Davis <jeremy.davis@sonarsource.com>
Thu, 4 Nov 2021 15:02:20 +0000 (16:02 +0100)
committersonartech <sonartech@sonarsource.com>
Thu, 4 Nov 2021 20:03:25 +0000 (20:03 +0000)
server/sonar-web/src/main/js/app/components/promotion-notification/PromotionNotification.tsx

index 3e907843a6961623a384f715da45ffa236da2666..471e610c44ab555493a693466b07dab99ca798c6 100644 (file)
@@ -23,6 +23,7 @@ import { dismissSonarlintAd } from '../../../api/users';
 import { ButtonLink } from '../../../components/controls/buttons';
 import { withCurrentUser } from '../../../components/hoc/withCurrentUser';
 import { translate } from '../../../helpers/l10n';
+import { getBaseUrl } from '../../../helpers/system';
 import { isLoggedIn } from '../../../helpers/users';
 import { setSonarlintAd } from '../../../store/users';
 import './PromotionNotification.css';
@@ -47,7 +48,7 @@ export function PromotionNotification(props: PromotionNotificationProps) {
   return (
     <div className="toaster display-flex-center big-padded-left big-padded-right">
       <div className="toaster-icon spacer-right">
-        <img alt="SonarQube + SonarLint" src="/images/sq-sl.png" />
+        <img alt="SonarQube + SonarLint" src={`${getBaseUrl()}/images/sq-sl.png`} />
       </div>
       <div className="toaster-content flex-1 padded-left padded-right big-padded-top big-padded-bottom">
         <span className="toaster-title text-bold medium">