Clicking on folder in iTerm2 opens in web browser instead of Finder
That feature is based on the current directory. For example command-clicking untitled\ folder works here:

$ cd Desktop; ls
untitled\ folder


But not here:

$ cd; ls Desktop
untitled\ folder