I am developing a Magento 2 store with two store views, one for each language(English and Italian). I turned on the "Add Store Code to Urls" option from backend, so my URLs looks like:
http://mystore.com/en (English) http://mystore.com/it (Italian)
What I would like to do now is to remove the store code from URL for the default store view, to obtain something like this:
http://mystore.com/ (English) http://mystore.com/it (Italian)
In Magento 1.9 there a few extensions that do this. I need to find something (or develop) for Magento 2.
Anyone has some hints?
A good example of what I am searching for is this: https://github.com/lalitmohann/magento-hide-default-store-code