Hi,
Is it possible to set/redirect a users home page dependant on a user profile property of country?
for example if Country is USA then home page would be mydomain.com/en-us or if country is Australia then home page would be mydomain.com/en-au
Thanks in advance
Todd
Of course, you can do anything in Javascript. Just do location.replace('//example.com/' + Meteor.user().profile.language)
or even location.replace('//example.com/' + navigator.language)
. You don’t really need to redirect to another URL to change the language of your page in Meteor though.
1 Like