diff --git a/src/Fields/BlueprintRepository.php b/src/Fields/BlueprintRepository.php index 2db699c46a2..f3f5022a5ff 100644 --- a/src/Fields/BlueprintRepository.php +++ b/src/Fields/BlueprintRepository.php @@ -356,7 +356,7 @@ public function getNamespaceAndHandleFromPath($path) }); if ($namespace === 'default') { - return $this->getNamespaceAndHandle(Str::after(Str::before($path, '.yaml'), $this->directory().'/')); + return $this->getNamespaceAndHandle(Str::after(Str::after(Str::before($path, '.yaml'), $this->directory().'/'), 'vendor/')); } $directory = $this->directories[$namespace];