diff --git a/src/Plugins/Nop.Plugin.Misc.Omnisend/Controllers/OmnisendAdminController.cs b/src/Plugins/Nop.Plugin.Misc.Omnisend/Controllers/OmnisendAdminController.cs index e582bee7c1e..7827fb63ef6 100644 --- a/src/Plugins/Nop.Plugin.Misc.Omnisend/Controllers/OmnisendAdminController.cs +++ b/src/Plugins/Nop.Plugin.Misc.Omnisend/Controllers/OmnisendAdminController.cs @@ -80,7 +80,7 @@ public async Task Configure() await FillBatchesAsync(model); - return View(model); + return View("~/Plugins/Misc.Omnisend/Views/Configure.cshtml", model); } [HttpPost, ActionName("Configure")] diff --git a/src/Plugins/Nop.Plugin.Misc.Omnisend/Infrastructure/PluginNopStartup.cs b/src/Plugins/Nop.Plugin.Misc.Omnisend/Infrastructure/PluginNopStartup.cs index 70e0c682104..78c680bdfc2 100644 --- a/src/Plugins/Nop.Plugin.Misc.Omnisend/Infrastructure/PluginNopStartup.cs +++ b/src/Plugins/Nop.Plugin.Misc.Omnisend/Infrastructure/PluginNopStartup.cs @@ -20,11 +20,6 @@ public class PluginNopStartup : INopStartup /// Configuration of the application public void ConfigureServices(IServiceCollection services, IConfiguration configuration) { - services.Configure(options => - { - options.ViewLocationExpanders.Add(new ViewLocationExpander()); - }); - services.AddHttpClient().WithProxy(); services.AddScoped(); services.AddScoped(); diff --git a/src/Plugins/Nop.Plugin.Misc.Omnisend/Infrastructure/ViewLocationExpander.cs b/src/Plugins/Nop.Plugin.Misc.Omnisend/Infrastructure/ViewLocationExpander.cs deleted file mode 100644 index ffc73ef72ba..00000000000 --- a/src/Plugins/Nop.Plugin.Misc.Omnisend/Infrastructure/ViewLocationExpander.cs +++ /dev/null @@ -1,36 +0,0 @@ -using Microsoft.AspNetCore.Mvc.Razor; - -namespace Nop.Plugin.Misc.Omnisend.Infrastructure; - -/// -/// Specifies the contracts for a view location expander that is used by Microsoft.AspNetCore.Mvc.Razor.RazorViewEngine instances to determine search paths for a view. -/// -public class ViewLocationExpander : IViewLocationExpander -{ - /// - /// Invoked by a to determine the values that would be consumed by this instance - /// of . The calculated values are used to determine if the view location - /// has changed since the last time it was located. - /// - /// The for the current view location - /// expansion operation. - public void PopulateValues(ViewLocationExpanderContext context) - { - } - - /// - /// Invoked by a to determine potential locations for a view. - /// - /// The for the current view location - /// expansion operation. - /// The sequence of view locations to expand. - /// A list of expanded view locations. - public IEnumerable ExpandViewLocations(ViewLocationExpanderContext context, - IEnumerable viewLocations) - { - viewLocations = new[] { $"/Plugins/Misc.Omnisend/Views/{context.ViewName}.cshtml" } - .Concat(viewLocations); - - return viewLocations; - } -} \ No newline at end of file diff --git a/src/Plugins/Nop.Plugin.Misc.Omnisend/plugin.json b/src/Plugins/Nop.Plugin.Misc.Omnisend/plugin.json index d5c0dd45a7f..36f2bdd4656 100644 --- a/src/Plugins/Nop.Plugin.Misc.Omnisend/plugin.json +++ b/src/Plugins/Nop.Plugin.Misc.Omnisend/plugin.json @@ -2,7 +2,7 @@ "Group": "Misc", "FriendlyName": "Omnisend", "SystemName": "Misc.Omnisend", - "Version": "4.80.4", + "Version": "4.80.5", "SupportedVersions": [ "4.80" ], "Author": "nopCommerce team", "DisplayOrder": 1,