Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix URL prefixing for static urls #8366

Merged
merged 1 commit into from
Aug 31, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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