Hi,
I am trying change url names based on the language selected on the page. For example, I have used-equipments.html and I want to have below urls;
/used-equipments for english
/equipos-usados for spanish (not sure this is correct translation though)
I am translating the content in the page through db. For the page names, I created a separate translation table and I am able to get the correct page name dynamically.
So when I put below into the p element, I get the correct page name.
{{serverconnect1.data.query1[0].page_name}}
The part I am not able to do is routing. I have below routing for this page, but this is not working.
I am not sure if this is even necessary, so I am also wondering how other users approach to URL names as they are important for SEO and Google suggests that we provide different urls for each language/location.
Maybe there is an easy way to append /en/ or /es/ to the URL for each page based on browser language, that would be also super helpful.
Can anyone give me some direction to look?
Last updated: