Fixed urls generated with two hostnames