From 2d9f2c9006ddfa209116af98c47af3ab8252407c Mon Sep 17 00:00:00 2001
From: Darren Oh <9472-darrenoh@users.noreply.drupalcode.org>
Date: Sun, 23 Feb 2025 19:10:39 +0000
Subject: [PATCH] Issue #3508547: Fix handling of symlinked recipes

---
 src/Plugin/ProjectBrowserSource/Recipes.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/Plugin/ProjectBrowserSource/Recipes.php b/src/Plugin/ProjectBrowserSource/Recipes.php
index 1c0819bb9..b73fffa03 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()
-- 
GitLab