www prefix does not work on nop 3.4

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
7 years ago
Actually, I think this only worked for Chrome.
1 year ago
For those who are having difficulties with versions older than 3.9. The problem for me was to specifically set the security url. You must leave it blank in store configuration (or put without 3w to hack the logic) for nopcommerce to automatically detect it. Because before he checks whether or not 3w exists, he uses the url saved in this field, according to the method GetStoreHost:

result = !String.IsNullOrWhiteSpace(currentStore.SecureUrl) ?
                        //Secure URL specified.
                        //So the store owner doesn't want it to be detected automatically.
                        //In this case let's use the specified secure URL
                        currentStore.SecureUrl :
                        //Secure URL is not specified.
                        //So the store owner wants it to be detected automatically.
                        result.Replace("http:/", "https:/");
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.