Skip to content
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

fix: handle multitab browsing #1465

Merged

Conversation

tbouliere-datasolution
Copy link
Contributor

@tbouliere-datasolution tbouliere-datasolution commented Jul 26, 2023

When browsing the site using different tabs, the identification status is not well persisted across tabs.
This is particularly annoying when a user opens several tabs to compare products before adding them to the shopping cart.

The following fix corrects these problems

PR Type

[X] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no API changes)
[ ] Build-related changes
[ ] CI-related changes
[ ] Documentation content changes
[ ] Application / infrastructure changes
[ ] Other:

What Is the Current Behavior?

Step to reproduce the bug

  • Open 2 product tab without being logged in
  • Add those product to cart on each tab
  • Only the last product will be association to the current basket

Issue Number: Closes #

What Is the New Behavior?

When an anonymous or user token is created on one tab, the change is propagated to the other tab within a second.

Does this PR Introduce a Breaking Change?

[ ] Yes
[x] No

Other Information

@SGrueber SGrueber requested a review from Eisie96 July 28, 2023 07:17
src/app/core/utils/api-token/api-token.service.ts Outdated Show resolved Hide resolved
src/app/core/utils/api-token/api-token.service.ts Outdated Show resolved Hide resolved
src/app/core/utils/api-token/api-token.service.ts Outdated Show resolved Hide resolved
src/app/core/utils/api-token/api-token.service.ts Outdated Show resolved Hide resolved
src/app/core/utils/api-token/api-token.service.ts Outdated Show resolved Hide resolved
src/app/core/utils/api-token/api-token.service.ts Outdated Show resolved Hide resolved
@Eisie96 Eisie96 requested a review from SGrueber August 8, 2023 14:17
@Eisie96 Eisie96 force-pushed the fix/multitab-session branch 2 times, most recently from 5ba5c16 to 452f406 Compare August 8, 2023 14:26
@stxppxr stxppxr added this to the 4.2 milestone Aug 30, 2023
When browsing the site using different tabs, the identification status is not well persisted across
tabs. This is particularly annoying when a user opens several tabs to compare products before adding
them to the shopping cart.
The following fix corrects these problems
SGrueber

This comment was marked as outdated.

@Eisie96 Eisie96 merged commit d5f749c into intershop:develop Sep 5, 2023
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants