Open mitar opened 8 years ago
cc @mquandalle
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.
Meteor application boundled for Sandstorm should have
Meteor.absoluteUrl
changed so thatX-Sandstorm-Base-Path
is used for its root path.