Спрашивающий

URL issue when using SSL with CustomerPortal

Вопрос

I have the Customer Portal (downloaded prior to November 2011) deployed for a client and we’ve just enabled SSL. Now we’re having problems browsing to KB articles returned in the results as the URLs do not appear to be generated correctly.

//hacked the following to return a valid url when using HTTPS
//return new UrlBuilder(path);
var url = new UrlBuilder(Request.UrlReferrer.Scheme, Request.UrlReferrer.Host, Request.UrlReferrer.Port, path);
return url;