diff --git a/ecrire/bootstrap/inc/path.php b/ecrire/bootstrap/inc/path.php
index 6c2a505b097792bf8ce361de0c868a8b3645863e..6044238fd85b3ccff67adb2022c475c36d5c3e1a 100644
--- a/ecrire/bootstrap/inc/path.php
+++ b/ecrire/bootstrap/inc/path.php
@@ -269,7 +269,7 @@ function find_in_path(string $file, string $dirname = '', bool|string $include =
 	}
 
 	$path = $loader->get($file);
-
+	// find in path retourne des chemins relatif, si possible
 	if ($path !== null && str_starts_with($path, _ROOT_RACINE)) {
 		$path = _DIR_RACINE . substr($path, strlen(_ROOT_RACINE));
 	}
@@ -279,11 +279,14 @@ function find_in_path(string $file, string $dirname = '', bool|string $include =
 	}
 
 	if ($include === true) {
-		return $path !== null ? $loader->include($file) : null;
+		if ($path === null) {
+			return null;
+		}
+		return $loader->include($file) ? $path : null;
 	}
 
 	if ($include === 'required') {
-		return $loader->require($file);
+		return $loader->require($file) ? $path : null;
 	}
 
 	throw new \InvalidArgumentException(sprintf('$include argument with "%s" value is incorrect.', $include));