set the correct url in the connection