I'm using v1.7. I wanted to run the site entirely in https but NopCommerce kept redirect some links (not all) to the http version. As an example:
1. Go here: https://shop.tkaraoke.com/default.aspx 2. Click on "About Us" on the left navigational bar. This will land to http://shop.tkaraoke.com/aboutus.aspx
Note that the final URL is (2) is http and not https. Any quick fix to this issue? TIA.
Thanks for the code. BTW, this issue happen on a product page as well (not a static page like aboutus.aspx). Where do I make the change so that a product link don't get redirected to http?
V 3.5 bug: in NopHttpsRequirementAttribute.cs Line 34 (missing else) ================================================================================== if (securitySettings.ForceSslForAllPages) //all pages are forced to be SSL no matter of the specified value this.SslRequirement = SslRequirement.Yes; ==================================================================================
V 3.5 bug: in NopHttpsRequirementAttribute.cs Line 34 (missing else) ================================================================================== if (securitySettings.ForceSslForAllPages) //all pages are forced to be SSL no matter of the specified value this.SslRequirement = SslRequirement.Yes; ==================================================================================
Everything is correct. Why do you think it's the bug?
if (securitySettings.ForceSslForAllPages) { //all pages are forced to be SSL no matter of the specified value this.SslRequirement = SslRequirement.Yes; } else { //all pages are displayed in normal http (or https) mode this.SslRequirement = SslRequirement.NoMatter; }