Developer forum

Forum » CMS - Standard features » Detect language

Detect language

Anders Ebdrup
Reply

Hello,

 

Is it possible to let DW detect the language of the browser and redirect the user to the right website?

 

Best regards, Anders


Replies

 
Mikkel Ricky
Reply
This post has been marked as an answer

You should be able to do this using Dynamicweb.Notifications.Standard.Application.BeginRequest [http://developer.dynamicweb-cms.com/API8/Dynamicweb~Dynamicweb.Notifications.Standard+Application~BeginRequest.html] and some browser language sniffing.

But are you sure you really want to do this? I often read stuff in Danish, but my browser language (and OS language too) is always English and I would find it annoying to be automatically redirected to an English website.

 

Votes for this answer: 1
 
Nuno Aguiar
Reply

Hi Anders,

 

We developed a module to manage redirection on Session Start (with a few exceptions). Would this be of interest?

 

You can redirect users to a certain page ID if they get into the website by a certain domain and/or IP

 

Nuno

 

You must be logged in to post in the forum