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

Switching store views twice in a row produces incorrect URL #12158

Closed
pfandrade opened this issue Nov 9, 2017 · 2 comments
Closed

Switching store views twice in a row produces incorrect URL #12158

pfandrade opened this issue Nov 9, 2017 · 2 comments
Labels
Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed

Comments

@pfandrade
Copy link

Preconditions

The behaviour described below appears on both Magento 2.2.0 and 2.2.1.

Steps to reproduce

  1. Add two different store views (codes en, pt for example)
  2. Make sure you're not using store codes in the URL
  3. Open your website. It will open the default store view (assume en)
  4. Switch to the pt store view. Verify that it works and that the url has "__store=pt" query arg.
  5. Immediately switch back to en store view

Expected result

  1. Magento should switch to the en store view and there should be only one "__store=pt" query arg.

Actual result

  1. The URL generated is invalid https://<magento>/?___store=pt?___store=en and Magento outputs an error.

magento_error

@magento-engcom-team magento-engcom-team added the Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed label Nov 9, 2017
@hostep
Copy link
Contributor

hostep commented Nov 9, 2017

Hi @pfandrade

This is a duplicate of #10908, which seems to already been fixed and fix should get delivered in Magento 2.2.2 (expected around the end of this year)

Feel free to close please :)

@pfandrade
Copy link
Author

Closing as duplicate of #10908

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed
Projects
None yet
Development

No branches or pull requests

3 participants