You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.
For example, if a user arrives on the website through a direct link to a category page (e.g. via google serp), the cookies will be set on the current path (e.g. /main-category/sub-category).
The user then adds a product to the cart (which is connected to his context) and leaves the website after that.
If the user comes back and access the website through a different page the cookies won't be found, therefore causing the code to set new cookies for the current path (and a new context in SW).
The first context is then lost for all the pages other than /main-category/sub-category and its subpages.
The tokens should be set with path='/' to avoid all this.
The text was updated successfully, but these errors were encountered:
We're experiencing some severe problems related to the fact that there's no path provided to the $cookies.set function.
https://github.com/vuestorefront/shopware-pwa/blob/master/packages/nuxt-module/plugins/api-client.js#L34
For example, if a user arrives on the website through a direct link to a category page (e.g. via google serp), the cookies will be set on the current path (e.g. /main-category/sub-category).
The user then adds a product to the cart (which is connected to his context) and leaves the website after that.
If the user comes back and access the website through a different page the cookies won't be found, therefore causing the code to set new cookies for the current path (and a new context in SW).
The first context is then lost for all the pages other than /main-category/sub-category and its subpages.
The tokens should be set with path='/' to avoid all this.
The text was updated successfully, but these errors were encountered: