Skip to content

Commit

Permalink
Merge pull request #8366 from rtibbles/perseus_fixes
Browse files Browse the repository at this point in the history
Fix URL prefixing for static urls
  • Loading branch information
rtibbles authored Aug 31, 2021
2 parents 11451b1 + 163e97b commit 77afe63
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@
import JSZip from 'jszip';
import client from 'kolibri.client';
import urls from 'kolibri.urls';
import responsiveWindowMixin from 'kolibri.coreVue.mixins.responsiveWindowMixin';
import scriptLoader from 'kolibri.utils.scriptLoader';
import CoreInfoIcon from 'kolibri.coreVue.components.CoreInfoIcon';
Expand All @@ -116,7 +117,7 @@
// because MathJax isn't compatible with webpack, we are loading it this way.
const mathJaxConfigFileName = require('../constants').ConfigFileName;
// the config is fragile, Khan may change it and we need to update the following hardcoded path.
const mathJaxUrl = `/static/mathjax/2.1/MathJax.js?config=${mathJaxConfigFileName}`;
const mathJaxUrl = urls.static(`mathjax/2.1/MathJax.js?config=${mathJaxConfigFileName}`);
const mathJaxPromise = scriptLoader(mathJaxUrl);
Expand Down

0 comments on commit 77afe63

Please sign in to comment.