When calling:
FlowRouter.url("myRouteName");
I'm getting the IP address of the server, i.e
"http://XX.XXX.XX.XXX/loggedin/my-route"
Instead of the FQDN, i.e
"http://example.com/loggedin/my-route"
Any idea how this can be configured properly?
Thanks.
Answering my own question. Source.
So it seems FlowRouter is using
Meteor.absoluteUrl
.Now the absolute path can be set with
Meteor.absoluteUrl.defaultOptions.rootUrl = "http://example.com"
However this isn't the correct approach for me, as my app can actually serve multiple domain names.So I'll have to write my own function, which extracts the FQDN from the client, ad hoc.
returns
http://example.com/loggedin/my-route
Which is what I'm after.