From 695561aa01cb79fb315bfdb9827b97726db220a5 Mon Sep 17 00:00:00 2001 From: Thomas Date: Mon, 8 Mar 2021 15:52:45 +0100 Subject: [PATCH] Merge pull request #3733 from overleaf/tm-mathjax-query-param Add query parameter to MathJax script path GitOrigin-RevId: c4f17505a23f8de4f5f5c7e62f74db930a029c22 --- services/web/app/src/infrastructure/ExpressLocals.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/web/app/src/infrastructure/ExpressLocals.js b/services/web/app/src/infrastructure/ExpressLocals.js index 1a4ebe9875..19c7b434bd 100644 --- a/services/web/app/src/infrastructure/ExpressLocals.js +++ b/services/web/app/src/infrastructure/ExpressLocals.js @@ -127,7 +127,8 @@ module.exports = function(webRouter, privateApiRouter, publicApiRouter) { res.locals.mathJaxPath = `/js/libs/mathjax/MathJax.js?${querystring.stringify( { - config: 'TeX-AMS_HTML,Safe' + config: 'TeX-AMS_HTML,Safe', + v: require('mathjax/package.json').version } )}`