I am getting stuck with an issue, I have a Multilanguage
site that is based on SXA
. Rather than going to change via language drop-down, I am going to change language via URL.
Please see the steps below what I made for reproducing this issue:
- first of all I have two language site which is
en-ca
andfr-Ca
.en-ca
is the default one. - I have a
product
page that exists in both languages. - When I try to hit the URL like:
https://domainname/en-ca/product
foren-ca
result will be correct. Now rather than changing the item language from the language selector dropdown, I tried to change the URL from the above to like:https://domainname/fr-ca/product
. After hitting the same page will load and get data fromfr-ca
language. - But it goes to the
404
page, because no product name like this exists in the content tree forfr-ca
since I have changed the name of the product item infr-ca
to products.
So my concern is that rather than resolving an item via its item name, I want to resolve it via display name.
Anyone, please suggest to me the better way how I can handle this?