2

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
niceonelee
  • 725
  • 2
  • 10
  • 35

1 Answers1

2

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

Lez
  • 2,907
  • 2
  • 23
  • 51