Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
2.2.4: Wrong home page loaded in multi store setup #15245
Steps to reproduce
I've already done some debugging and this commit seems to cause the issue: c18e36b.
Magento will fallback to the default store and this will cause the
I'm willing to make a pull request for this but I don't see a good solution.
I've heard nothing from @magento-team or @magento-engcom-team regarding this. Somebody has verified this is an issue in the GitHub Issue that I raised (please find it here - #15205), they mentioned that there is a commit that you can do to attempt a fix for it for the time being, so I would suggest trying that.
We've taken the decision to not upgrade to 2.2.4 yet with any sites because of some of these frustrating bugs that have appeared in this version.
warning: core hack ahead ;)
I managed to bypass the bug by adding the following in /vendor/magento/framework/Locale/Resolver.php
referenced this issue
Jun 7, 2018
This was referenced
Jun 12, 2018
The fix will be available with the upcoming 2.2.6 release.
The fix will be available with the upcoming 2.3.0 release.
Here is a slightly modified version for everyone who dont want to wait until 2.3:
Its a little bit better than the solution from @NicoDG , because there are no hardcoded stores. Still a bad core hack