I'm using Magento 2.2.2, I have others language store in my Magento.
how to remove ?___from_store=fr on the url?
http://exsample.com/en/?___from_store=fr
I'm using Magento 2.2.2, I have others language store in my Magento.
how to remove ?___from_store=fr on the url?
http://exsample.com/en/?___from_store=fr
Set Add Store code to URLs to yes in:
Admin -> Store -> Configuration -> General -> Web -> URL Options
EDIT
Seems like this is a small Magento 2.2.2. bug.
I don't think that when you have Add Store code to URLs set to yes, that the ___from_store should show when changing.
I don't know how to fix it though, but you can check these files to try and figure it out:
/vendor/magento/module-store/Block/Switcher.php
and
/vendor/magento/module-url-rewrite/Controller/Router.php
no- notyes– Steven J Jan 15 '18 at 17:41yeson that option removes?__from_store=frand changes it to just the store codefr– Lez Jan 15 '18 at 17:44YES, and i only want store codeenso how to remove?___from_store=, thank you – niceonelee Jan 15 '18 at 18:08