This is a Magento 2.3.2 CE project
Let's assume url of default storeview is https://www.domain.com/store/es
Url of second storeview is https://www.domain.pt/pt
Language switcher gives error, redirecting to same storeview 404 page... is this a bug or a feature? I understand this url configuration is weird, and it makes no sense using store codes in this case