Better method on how to build an url.