Try our conversational search powered by Generative AI!

Change edit mode language from HTML


Good morning,

I need to change page language when content mode is 'Edit'. 

It should works as 'Language' functionallity from header panel.

Language selector EPiServer

Is it possible to duplicate this behaviour to my application?

I use redirect to new url and it works for preview and default modes.

Sep 11, 2015 7:54

I want to correct myself: redirect doesn't work in preview mode also 

Sep 11, 2015 9:37


The functionality from the screenshot is available under ContentDetails.js file.

The language link is created using code:

var url = new dojo._Url(;

var contentLink = 111;

var href = [url.scheme, "://", url.authority, url.path, "?language=", item.text, "#context=epi.cms.contentdata:///", contentLink].join("");

You need to pass contentLink value.

You could also use a server method from PageEditing class

PageEditing.GetEditUrlForLanguage(contentLink, language)
Sep 11, 2015 20:46
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.