Redirect (set home) based on User Profile


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 or if country is Australia then home page would be

Thanks in advance


Of course, you can do anything in Javascript. Just do location.replace('//' + Meteor.user().profile.language) or even location.replace('//' + navigator.language). You don’t really need to redirect to another URL to change the language of your page in Meteor though.

1 Like