VM My Cart

GK User
Mon Jul 22, 2013 2:14 pm
Please check if the problem occurs always or only if you visit your page without "www." prefix.
User avatar
Administrator

GK User
Thu Jul 25, 2013 8:21 pm
dziudek wrote:Please check if the problem occurs always or only if you visit your page without "www." prefix.

This seams to be a solution. Do you know what it matters?

Thank you so much.
User avatar
Gold Boarder

GK User
Fri Jul 26, 2013 10:04 am
The redirect url was based on the non-www version, I've added to the code the following fragment:

Code: Select all
if(window.location.host.substr(0, 4) === 'www.') {
   window.location.href = 'https://www.domain.com/my-cart';
} else {
   window.location.href = 'https://domain.com/my-cart';
}


and now it should works fine.
User avatar
Administrator

GK User
Sat Jul 27, 2013 4:41 am
Thanks for the great support! I really appreciate it.
User avatar
Gold Boarder


cron