For pages like checkout etc, I have this code in place inside the OnInit function of the page that redirect the page to the "https" version of it:
if (!HttpContext.Current.Request.IsSecureConnection) {
HttpContext.Current.Response.Redirect(SiteNavigation.ResolveAbsoluteUrl(true, HttpContext.Current.Request.Url.PathAndQuery));
}
However, asp-wizard does not seem happy with it. I think it uses postback or something to navigate to the next wizard-step, and it hits OnInit code when it is supposed to navigate to next step, so it keeps redirecting to itself, which means it just sits on the first step. Why do you think that is happening? Shouldn't it see it's a secure connection and not redirect? I do not feel comfortable writing "If (!isPostBack), only then redirect", because shouldn't my code already see it is a secure connection and not redirect? Anybody know what i mean or went through something similar?