We are on multi-lingual websites having en-CA and fr-CA languages as well. We defined virtual folder for fr-CA to share the same domain name with en-CA. Hence the en-CA works on
www.mywebsite.ca and fr-Ca works on
www.mywebsite.ca/cafr, all the pages are coming up fine with correct context language.
Having Solr as search engine, for search listing pages we are using Data API Services having data-api-url like “dataservices/pagename”, which is working fine for all the languages but fr-CA. Reason being when it comes to fr-CA the data api url is not respecting the Virtual Folder as part of the URL and returning en-CA search results.
What I have tried:
I tried adding /cafr to the data api url especially when the current context language is fr-CA but it throws a 404.
How can I force Data API to get the search results in fr-CA by passing the Virtual Folder value?
Any help is much appreciated.