Fix Css autoupdate for pages with ROOT_URL_PATH_PREFIX set

For pages using a ROOT_URL="" setting with a path component (eg.
"myproject.com/beta"), the CSS autoupdate would break the page, because
it would set the autoupdate CSS files' URL to /<longidstring>.css, while it
should have been /beta/<longidstring>.css. Added the required
ROOT_URL_PATH_PREFIX.
This commit is contained in:
Daniel Dornhardt
2014-11-17 15:11:16 +01:00
committed by David Glasser
parent c62e1c7cd6
commit 3372e660d0

View File

@@ -127,7 +127,7 @@ Autoupdate._retrySubscription = function () {
newLink.setAttribute("rel", "stylesheet");
newLink.setAttribute("type", "text/css");
newLink.setAttribute("class", "__meteor-css__");
newLink.setAttribute("href", css.url);
newLink.setAttribute("href", __meteor_runtime_config__.ROOT_URL_PATH_PREFIX + css.url);
attachStylesheetLink(newLink);
});
} else {