When using the search plugin, results are linked to foo/bar/index.html, whether or not use_dirs is enabled; when use_dirs is enabled, the link should point to foo/bar/ instead.
foo/bar/index.html
foo/bar/