Skip to content

Commit f16c327

Browse files
committed
Use baseURLPrefix in JS
1 parent 49bf237 commit f16c327

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

static/js/glossary.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ var GitGlossary = {
5656
const truncatedDefinition = this.truncateWords(definition, 60);
5757

5858
const language = document.querySelector("html")?.getAttribute("lang") || 'en';
59-
const glossaryUrl = language === 'en' ? '/docs/gitglossary' : `/docs/gitglossary/${language}`;
59+
const glossaryUrl = language === 'en' ? baseURLPrefix + 'docs/gitglossary' : baseURLPrefix + `docs/gitglossary/${language}`;
6060

6161
this.tooltip.querySelector('.tooltip-content').innerHTML = `
6262
<a href="${glossaryUrl}#def_${term}" target="_blank">

0 commit comments

Comments
 (0)