我有一种奇怪的情况...... 我有一个重定向到url,当我在inspect元素中查看HTML时,如下所示:http://myTestsite.net/home/default.aspx,但是当你点击链接时,它会呈现为" https://myTestsite.net/home/default.aspx,/default.aspx ...导致错误。任何建议?
以下是代码:注意:targetPath是"%20default.aspx"
string targetPath = HttpUtility.UrlEncode(Core.Context.Current.Url);
string secure = SiteUtil.IsSecureConnection(Request) ? "https://" : "http://";
string targetDomain = Digitaria.Web.MBFI.UI.Data.Util.MobileCookieOverrideUtil.GetCookieOverrideMobileDomain(false);
string viewFullLink = string.Format(@"<li><a href=""http://{0}/{1}?mode={2}&path={3}"">{4}</a></li>", targetDomain, "handlers/MobileSwitch.aspx", 1, targetPath, L.Full_Website).Replace("&", "&");
phNav.Controls.Add(new LiteralControl(viewFullLink));
phNav.Controls.Add(new LiteralControl("</ul>"));