determine public URL automatically when not specified via Environment::URL