Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] Autoupdate of CSS does not work when using a prefix #8107

Merged
merged 2 commits into from
Dec 5, 2017

Conversation

Darkneon
Copy link
Contributor

@RocketChat/core

Closes #ISSUE_NUMBER

When running RC with a prefix URL, in https://github.com/RocketChat/Rocket.Chat/blob/develop/packages/autoupdate/autoupdate_client.js#L84, if you hit only the first path RC will fail to load the CSS because the url prefix is duplicated and it receives the HTML of a 404 instead of the CSS.

I was not able to reproduce it the in the current develop branch because the second path is also hit which reloads the page. However, I was able to reproduce it my custom build of RC.

Since in the newer versions of Meteor the ROOT_URL_PATH_PREFIX is prefixed by default (https://github.com/meteor/meteor/blob/devel/packages/webapp/webapp_server.js#L41) this change just
syncs with the client file in the meteor package https://github.com/meteor/meteor/blob/87681c8f166641c6c3e34958032a5a070aa2d11a/packages/autoupdate/autoupdate_client.js

@Darkneon Darkneon changed the title [FIX]: Autoupdate of CSS [FIX]: Autoupdate of CSS when using a prefix Sep 12, 2017
@RocketChat RocketChat deleted a comment from biomassives Sep 13, 2017
@engelgabriel engelgabriel added this to the 0.60.0 milestone Sep 13, 2017
@rodrigok rodrigok changed the title [FIX]: Autoupdate of CSS when using a prefix [FIX] Autoupdate of CSS does not work when using a prefix Dec 5, 2017
@rodrigok rodrigok merged commit 226e720 into RocketChat:develop Dec 5, 2017
@rodrigok
Copy link
Member

rodrigok commented Dec 5, 2017

Thanks by this contribution @Darkneon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants