aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/helpers/markdown.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/helpers/markdown.js')
-rw-r--r--server/sonar-web/src/main/js/helpers/markdown.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/helpers/markdown.js b/server/sonar-web/src/main/js/helpers/markdown.js
index 633c3450289..b41e590fcad 100644
--- a/server/sonar-web/src/main/js/helpers/markdown.js
+++ b/server/sonar-web/src/main/js/helpers/markdown.js
@@ -72,8 +72,9 @@ function parseFrontMatter(lines) {
* @returns {string}
*/
function filterContent(content) {
- const { isSonarCloud } = require('./system');
- const contentWithoutStatic = cutConditionalContent(content, 'static');
+ const { isSonarCloud, getInstance } = require('./system');
+ const contentWithInstance = content.replace('{instance}', getInstance());
+ const contentWithoutStatic = cutConditionalContent(contentWithInstance, 'static');
return isSonarCloud()
? cutConditionalContent(contentWithoutStatic, 'sonarqube')
: cutConditionalContent(contentWithoutStatic, 'sonarcloud');