fix getting title of url

urls may not have paths, then use the complete url as title