Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.
C# aspnet-corecsharpdockerdotnetecommerceecommerce-platformmongodbmulti-storemulti-vendornosqlonline-shopshoppingcart
Minor fix - GetViewPath
KrzysztofPajak11a7e3c248bc
diff --git a/src/Web/Grand.Web.Common/Components/ViewComponentExtensions.cs b/src/Web/Grand.Web.Common/Components/ViewComponentExtensions.csindex 2daa27a63..0859dbf2d 100644--- a/src/Web/Grand.Web.Common/Components/ViewComponentExtensions.cs+++ b/src/Web/Grand.Web.Common/Components/ViewComponentExtensions.cs@@ -13,15 +13,15 @@ namespace Grand.Web.Common.Componentsvar theme = themeContext.WorkingThemeName;var viewPath = $"Views/Shared/Components/{viewComponent.ViewComponentContext.ViewComponentDescriptor.ShortName}/{viewName}.cshtml";- var themeViewPath = $"/Themes/{theme}{viewPath}";+ var themeViewPath = $"/Themes/{theme}/{viewPath}";var viewEngine = viewComponent.ViewContext.HttpContext.RequestServices.GetRequiredService<ICompositeViewEngine>();var result = viewEngine.GetView("", themeViewPath, isMainPage: false);if (result.Success){- viewPath = themeViewPath;+ return themeViewPath;}- return viewPath;+ return viewName;}}}