diff --git a/src/modules/launcher/Plugins/Microsoft.Plugin.Indexer/SearchHelper/WindowsSearchAPI.cs b/src/modules/launcher/Plugins/Microsoft.Plugin.Indexer/SearchHelper/WindowsSearchAPI.cs index fbc31ff9a8..84b0bdbf1f 100644 --- a/src/modules/launcher/Plugins/Microsoft.Plugin.Indexer/SearchHelper/WindowsSearchAPI.cs +++ b/src/modules/launcher/Plugins/Microsoft.Plugin.Indexer/SearchHelper/WindowsSearchAPI.cs @@ -58,7 +58,10 @@ namespace Microsoft.Plugin.Indexer.SearchHelper continue; } - var uri_path = new Uri((string)oleDBResult.FieldData[0]); + // # is URI syntax for the fragment component, need to be encoded so LocalPath returns complete path + var string_path = ((string)oleDBResult.FieldData[0]).Replace("#", "%23", StringComparison.OrdinalIgnoreCase); + var uri_path = new Uri(string_path); + var result = new SearchResult { Path = uri_path.LocalPath,