We have an issues with re-directs and pages not loading correctly:
Senario:
We have a customer tracking through cookies. We have several sites with subdomain for
eu.monsroyale.com ,
au.monsroyale.com and
nz.monsroyale.com and etc.
When customer goes any of those sites it creates a cookie, and track the site they are browsing.
When customer closes the browser and types
monsroyale.com it's checking the cookie and user will be redirected to last known site.
Issue:
When the customer was redirected to last known site most of the times he/she see a site with header and footer and I can inspect the elements, and see the theme is loading but no content inside.
I also see below error
Uncaught TypeError: Cannot read property 'split' of undefined
at t.n.getCmsContext (shopping.js?t=1529028777380:8)
and this is pointing to "CMSadapter.Impl.Core"
var url = Backbone.history.fragment.split('?')[0]
, path = url[0] === '/' ? url : '/' + url;
var context = {
path: path, site_id: this.application.getConfig('siteSettings.siteid')
, page_type: this.application.getLayout().currentView ? this.application.getLayout().currentView.el.id : ''
};
However, If I refresh it all works fine. It seems like it's not loading Website Configurations and some of the code is missing in the head section too
Reproduce :
Go to
au.monsroyale.com and close the tab, Open new tab and go to
monsroyale.com and it will redirect to
au.monsroyale.com but missing content