diff --git a/src/Plugin/ProjectBrowserSource/Recipes.php b/src/Plugin/ProjectBrowserSource/Recipes.php
index 1c0819bb9534adc5aafce7b6e021e903a6ea3736..b73fffa0378cc9ab64f1b4535c43fa6ae7163331 100644
--- a/src/Plugin/ProjectBrowserSource/Recipes.php
+++ b/src/Plugin/ProjectBrowserSource/Recipes.php
@@ -195,10 +195,10 @@ final class Recipes extends ProjectBrowserSourceBase {
     if ($contrib_recipe_names) {
       $path = InstalledVersions::getInstallPath($contrib_recipe_names[0]);
       assert(is_string($path));
-      $path = $this->fileSystem->realpath($path);
+      $path = $this->fileSystem->realpath(dirname($path));
       assert(is_string($path));
 
-      $search_in[] = dirname($path);
+      $search_in[] = $path;
     }
 
     $finder = Finder::create()