Moving the url formatting to when it's set.