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 - StoreHost - get host value
KrzysztofPajak597cb0c21675
diff --git a/src/Web/Grand.Web.Common/StoreHelper.cs b/src/Web/Grand.Web.Common/StoreHelper.csindex 9926a0493..a64ef5985 100644--- a/src/Web/Grand.Web.Common/StoreHelper.cs+++ b/src/Web/Grand.Web.Common/StoreHelper.cs@@ -53,7 +53,7 @@ namespace Grand.Web.Commonif (_cachedStore == null){//try to determine the current store by HOST header- string host = _httpContextAccessor.HttpContext?.Request?.Headers[HeaderNames.Host];+ string host = _httpContextAccessor.HttpContext?.Request?.Host.Host;var allStores = _storeService.GetAll();var stores = allStores.Where(s => s.ContainsHostValue(host));