diff --git a/BTCPayServer/Plugins/PluginManager.cs b/BTCPayServer/Plugins/PluginManager.cs index 8d69dcd2c..364d341ab 100644 --- a/BTCPayServer/Plugins/PluginManager.cs +++ b/BTCPayServer/Plugins/PluginManager.cs @@ -86,7 +86,7 @@ namespace BTCPayServer.Plugins // Load from the plugins folder foreach (var directory in Directory.GetDirectories(pluginsFolder)) { - var pluginIdentifier = Path.GetDirectoryName(directory); + var pluginIdentifier = Path.GetFileName(directory); var pluginFilePath = Path.Combine(directory, pluginIdentifier + ".dll"); if (!File.Exists(pluginFilePath)) continue;