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 changes
KrzysztofPajak832fde69e3a3
diff --git a/src/Web/Grand.Web.Admin/Controllers/SystemController.cs b/src/Web/Grand.Web.Admin/Controllers/SystemController.csindex ab975b4fa..6742ce276 100644--- a/src/Web/Grand.Web.Admin/Controllers/SystemController.cs+++ b/src/Web/Grand.Web.Admin/Controllers/SystemController.cs@@ -118,9 +118,10 @@ namespace Grand.Web.Admin.ControllersFullName = assembly.FullName,});}- //store URL- var currentStoreUrl = _workContext.CurrentHost.Url;- if (!String.IsNullOrEmpty(currentStoreUrl) && (currentStoreUrl.Equals(HttpContext.Request.Host.Host, StringComparison.OrdinalIgnoreCase)))++ //current host+ var currenthostName = _workContext.CurrentHost.HostName;+ if (!string.IsNullOrEmpty(currenthostName) && (currenthostName.Equals(HttpContext.Request.Host.Value, StringComparison.OrdinalIgnoreCase)))model.SystemWarnings.Add(new SystemInfoModel.SystemWarningModel {Level = SystemInfoModel.SystemWarningModel.SystemWarningLevel.Pass,Text = _translationService.GetResource("Admin.System.Warnings.URL.Match")@@ -128,7 +129,7 @@ namespace Grand.Web.Admin.Controllerselsemodel.SystemWarnings.Add(new SystemInfoModel.SystemWarningModel {Level = SystemInfoModel.SystemWarningModel.SystemWarningLevel.Warning,- Text = string.Format(_translationService.GetResource("Admin.System.Warnings.URL.NoMatch"), currentStoreUrl, HttpContext.Request.Host.Host)+ Text = string.Format(_translationService.GetResource("Admin.System.Warnings.URL.NoMatch"), currenthostName, HttpContext.Request.Host.Host)});