diff --git a/www/common/rewrite-css.js b/www/common/rewrite-css.js index 98c81b35c..4f713cd32 100644 --- a/www/common/rewrite-css.js +++ b/www/common/rewrite-css.js @@ -1,10 +1,12 @@ define([ '/api/config', ], function (Config) { - if (!(Config && Config.requireConf && Config.requireConf.urlArgs)) { return; } - + var urlArgs = Config && Config.requireConf && Config.requireConf.urlArgs; + if (!urlArgs) { return; } document.querySelectorAll('link[rel="stylesheet"][data-rewrite-href]').forEach(function (e) { - e.setAttribute('href', e.getAttribute('data-rewrite-href')); + var href = e.getAttribute('data-rewrite-href'); + href += (/\?/.test(href)?'&':'?') + urlArgs; + e.setAttribute('href', href); }); });