if the given url is a string, use it, otherwise use the constructed string