my understanding is that `url_for` expects host and port to be passed. and if they aren't, it starts trying to infer them... which from what I've gleaned from tests, it does not do reliably, e.g. mailers