New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cookie Messages on Login Page not cleared when ElasticSuite Tracker is active #1291
Comments
I have modified tracking,js to be called by config.phtml and variables.phtml using requirejs - which should be how the js is called with domReady! to delay it from being called too early. I'd suggest it is implemented this way anyhow! Magento 2.3.1 does some erratic behavior with javascript load/execute order as you are seeing! |
@southerncomputer can you publish your patch as a PR ? |
unfortunately, it is still having this problem of being caught by Private site restrictions and getting a 302 to customer/account/login/ . I had to whitelist the url for now otherwise you get wonky page loads within page-loads which amplified by javascript actions cause double event-firing and the login referer script redirects to hit.php.. etc. It must be the way tracking.js is calling hit that is messing with everything, i'm guessing it is not using xhr/xmlhttprequest/jsonp method to bypass the security frontend modules! |
I close, this issue is too old. Regards |
Preconditions
Full elasticsuite installed
Catalog is protected by login
Magento Version : 2.2.6
ElasticSuite Version : 2.64
Environment : Developer or Production
Third party modules : Quite some :-)
Steps to reproduce
not 100% reproducible in Chrome, but in Firefox quite well
Expected result
Actual result
Logged in page with
Debugging
First we inserted some debug code - the cookie is removed properly
as you can see
We think it is caused by the fact that the tracker's h.png is loaded BEFORE messages.js kicks in, and thus sends the cookies to the server. Then in the next request, Magento sends this cookie message again.
For now we disable the tracker, but it would be great if this could be fixed.
The text was updated successfully, but these errors were encountered: