From ce8fd7d8a87a2628bec0c4b8eec2eaf92ab658d1 Mon Sep 17 00:00:00 2001 From: support Date: Thu, 29 Feb 2024 19:20:00 +0100 Subject: [PATCH] Disable port in UriBuilder --- .../Grand.Business.Core/Extensions/AffiliateExtensions.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Business/Grand.Business.Core/Extensions/AffiliateExtensions.cs b/src/Business/Grand.Business.Core/Extensions/AffiliateExtensions.cs index 049e0617e..700de876c 100644 --- a/src/Business/Grand.Business.Core/Extensions/AffiliateExtensions.cs +++ b/src/Business/Grand.Business.Core/Extensions/AffiliateExtensions.cs @@ -55,7 +55,8 @@ public static string GenerateUrl(this Affiliate affiliate, string host) query["affiliate"] = affiliate.FriendlyUrlName; else query["affiliateid"] = affiliate.Id; - + + uriBuilder.Port = -1; uriBuilder.Query = query.ToString(); return uriBuilder.ToString(); }