mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
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:
committed by
David Glasser
parent
c62e1c7cd6
commit
3372e660d0
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user