From e7c8853b57a219ab992a6710591d229ae1b7963c Mon Sep 17 00:00:00 2001 From: Jeremy Davis Date: Wed, 15 Jan 2020 12:11:31 +0100 Subject: [PATCH] SONAR-12720 Fix api call --- server/sonar-web/src/main/js/api/security-hotspots.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/sonar-web/src/main/js/api/security-hotspots.ts b/server/sonar-web/src/main/js/api/security-hotspots.ts index 08b6d1e490d..0a54022b6db 100644 --- a/server/sonar-web/src/main/js/api/security-hotspots.ts +++ b/server/sonar-web/src/main/js/api/security-hotspots.ts @@ -46,7 +46,9 @@ export function setSecurityHotspotStatus( } export function commentSecurityHotspot(hotspotKey: string, comment: string): Promise { - return post('api/hotspots/add_comment', { hotspot: hotspotKey, comment }).catch(throwGlobalError); + return post('/api/hotspots/add_comment', { hotspot: hotspotKey, comment }).catch( + throwGlobalError + ); } export function getSecurityHotspots( -- 2.39.5