Open sframe opened 6 years ago
@mg2dael I'll try to get more details for you on Monday.
Maysam suggested a URL that your team could investigate against.
I suggest using this one https://s3.amazonaws.com/ajc-authtest/index.html that doesn’t require a user/pass.
Keep in mind that the content leads might be actively changing these sites specially now that I suggested they try calling
Connext.Utils.GetUrl = () => window.location.href
to see if getting around the fragment identifier issue will resolve all the other single page app issues as well.
Right now Connext ignores on the URL anything that is going after # or ? symbols. Issue can be solved by adding to Init function extra parameter, that will tell us whether we need to analyse on the URL Hash or Get parameters and even define exact list of those parameters (all other except defined will be ignored).
Example will look like
var mg2Connext = Connext.init({
siteCode: 'XX',
configCode: 'XXXX',
urlParams: '#Page1,#Page2,?prm1' // this will be treated as 'Hash parameters with names Page1, Page2, and Get parameter with name prm1 will be considered as a part of unique URL. All other parameters except listed will be ignored.'
...
});
Another example will look like
var mg2Connext = Connext.init({
siteCode: 'XX',
configCode: 'XXXX',
urlParams: '#*,?*' // this will be treated as 'Any hash and get parameter will be considered as a part of unique URL'
...
});
By default, If this parameter is empty it will ignore any Get or Hash parameter (as it works now)
@sframe Will what Ilya suggests above work for you guys?
Hey Dael,
I'm catching up with all the emails today and it appears that there was an issue discovered with one of our smaller sites that inherits the MySite + MC + Connext.
For SPA sites (like Member Center) we have a method
updateConnext()
that would re-init Connext with state change, but Connext appears to have some problems with SPA sites that use the URL fragment to track page changes.Unfortunately, the example site is behind a password so I'll need to work out a demo site to help demonstrate the issue.
Fortunately, Tim sent a nice write up of what he assumes to be the issue.