Build url from struct instead of parsing