killing params from url to get a proper url