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

Make Meteor.absoluteUrl use X-Sandstorm-Base-Path #23

Open
mitar opened this issue Apr 18, 2016 · 3 comments
Open

Make Meteor.absoluteUrl use X-Sandstorm-Base-Path #23

mitar opened this issue Apr 18, 2016 · 3 comments

Comments

@mitar
Copy link

mitar commented Apr 18, 2016

Meteor application boundled for Sandstorm should have Meteor.absoluteUrl changed so that X-Sandstorm-Base-Path is used for its root path.

@mitar
Copy link
Author

mitar commented Apr 18, 2016

cc @mquandalle

@mquandalle
Copy link
Contributor

The hack I initially written consisted in overwrite the Meteor.absoluteUrl to change its logic in a way that works on Sandstorm (here). Looking at the code again, it seems that a much easier way to have it work is to overwrite the client-side ROOT_URL variable that this function is using, instead of overwriting the function itself.

The value is defined here, and I guess the clean way would be either to set __meteor_runtime_config__.ROOT_URL or if we can’t to update Meteor.absoluteUrl.defaultOptions.rootUrl after client loading.

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

No branches or pull requests

2 participants