diff --git a/modules/cms/widgets/AssetList.php b/modules/cms/widgets/AssetList.php index 97c5c4917..e9eb20127 100644 --- a/modules/cms/widgets/AssetList.php +++ b/modules/cms/widgets/AssetList.php @@ -640,7 +640,7 @@ class AssetList extends WidgetBase if ($this->pathMatchesSearch($words, $path)) { $result[] = (object)[ 'type'=>'file', - 'path'=>$path, + 'path'=>File::normalizePath($path), 'name'=>$item->getFilename(), 'editable'=>in_array(strtolower($item->getExtension()), $editableAssetTypes) ]; @@ -664,4 +664,4 @@ class AssetList extends WidgetBase return true; } -} \ No newline at end of file +}