Question

I am currently using SharePoint 2013 On-Premise and I have enabled the Variations in a site collection.

Under the site collection, three sub sites are created for each language. My question is: how can I redirect the user to the right language when he/she visits the site? Does SharePoint handle this based on user's Browser settings, do I have to write any custom code to handle redirection or configure something in web.config?

Edit

I have changed the language in the browser to French, but I am still not redirected to the French site when I visit my site: http://dev/sites/heli,for example.

Was it helpful?

Solution

When you enable variations in your site collection, there is a file created in the pages Library called: VariationRoot.aspx. When you open this file, you will be redirected to the write site.

You have to set this page as your home page, so that everytime a user visits your site, he will be redirected to the correct site.

You can set it has homepage either in 1) SharePoint Designer or you can use 2) PowerShell.

I hope this will help you.

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top