experius / Magento2-Module-Multiple-Website-Store-Code-Url

14 stars 8 forks source link

[Feature Request] Store Code Switch should be stripped too #3

Open TimQSO opened 4 years ago

TimQSO commented 4 years ago

When using your module it strips the storeview code in the url, for example:

mywebsite_nl will become www.mywebsite.com/nl

However if you use a store view switch on the website and you attach the name of the store view to it it will use the full name of the storeview code and it does not strip the website_code, so the customer sees in a switcher something like this:

mywebsite_nl mywebsite_de mywebsite_en

And so on. It would be nice to see that the website_code is stripped also from the switcher.

As an alternative we could use the Name of the Store View instead of the storeview code. But it is something to consider.