fixes #18368: if no string is passed use URL instead