get the right url