-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Store View switcher not working on front-end and it throws an error #11211
Comments
@latypatil, thank you for your report. |
The issue is in /vendor/magento/module-store/Block/Switcher.php with function getTargetStorePostData () where $store->getCurrentUrl(false) , Current url has been passed there and It should be $this->getUrl('stores/store/switch'). |
this issue is a result of merge in issue [https://github.com//issues/8509] which fixes cookie redirect problems with multidomains |
Hey @okorshenko PR #11337 |
@latypatil, I think that this issue is similar to issue #10908? Do you have logs in var/logs/exception.log? |
[EngCom] Public Pull Requests - 2.2-develop - MAGETWO-82955: [Backport 2.2-develop] FIX show visual swatches in admin - product attribute #11747 - MAGETWO-82943: Magetwo 70954: Remove the component.clear from the custom options type. This causes the 'elem' array to become out of sync with the recordData #11824 - MAGETWO-82710: Fix issue #10032 - Download back-up .tgz always takes the latest that's created (2.2-develop) #11595 - MAGETWO-81994: Products added to cart with REST API give total prices equal to zero #11458 - MAGETWO-81422: #11211 Fix Store View switcher #11337
the issue has been fixed and delivered to 2.2-develop branch. WIll be available with 2.2.2 release |
@latypatil, i had the same problem and was able to fix it with this small fix. I know it's not perfect and that i should overwrite the core module in a custom plugin, but anyway i'll not need this fix anymore when i'll update the code with the new release containing the official fix. In /vendor/magento/module-store/block/switcher.php, in getTargetStorePostData method, replace
by:
|
Hi @latypatil. Thank you for your report.
The fix will be available with the upcoming patch release. |
If we select any store then site will go to that store and again we select another store then it throws an error because the url is wrong.
Preconditions
Steps to reproduce
Expected result
Ex. http://10.16.16.141/magento2.2/?___store=aus ==>this is for one of store view
http://10.16.16.141/magento2.2/?___store=usa ==> This should be for different store view
OR
Base url should be the same for any store ,only store will get switch!
Actual result
After changing the store view second time it redirect to below url :
http://10.16.16.141/magento2.2/?___store=aus?___store=usa
(URL is only for reference , it will not work)
The text was updated successfully, but these errors were encountered: