From 3372e660d0bebd0d94ad9bc55bc87212277c1913 Mon Sep 17 00:00:00 2001 From: Daniel Dornhardt Date: Mon, 17 Nov 2014 15:11:16 +0100 Subject: [PATCH] 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 /.css, while it should have been /beta/.css. Added the required ROOT_URL_PATH_PREFIX. --- packages/autoupdate/autoupdate_client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/autoupdate/autoupdate_client.js b/packages/autoupdate/autoupdate_client.js index 21d6fd2823..65c1f625a9 100644 --- a/packages/autoupdate/autoupdate_client.js +++ b/packages/autoupdate/autoupdate_client.js @@ -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 {