Make the server generate server URLs, not client ones. That was always a bit nasty. Now it's getting better