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

Improve context detection #2631

Open
wants to merge 3 commits into
base: trunk
Choose a base branch
from

Conversation

AlexP11223
Copy link
Contributor

Added the detection of the update_order_review/update_shipping_method ajax requests to fix the possibility of getting a wrong context during these requests, e.g. when the home page contains the cart.

Also removed continuation from the context. It was added in #2398 and used in 2 places. I think it is not a good idea to increase complexity of the context, especially if we decide to refactor it in the future. And it was working a bit incorrectly, such as if you are in continuation mode and leave checkout the context still remains continuation, while before #2398 it would be mini-cart (it was a bit weird however that when you go to the checkout in continuation mode the context becomes mini-cart but replacing one weirdness with another one is not great).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants