modified the url genration according to our environment