Setting the proper url