Try our conversational search powered by Generative AI!

Prevent auto-switch to the leftmost tab after Publish


Hi everyone,

Whenever an editor publishes a change in EPiServer CMS / Commerce, their tab is automatically switched to the leftmost tab.

This is causing a slight annoyance for our editors.

The wanted behavior is that it sticks to the tab the editor was already viewing as soon as they press Publish.

I've searched the forum and the documentation for how to change this behavior but without any luck, and I was hoping someone here could help me out.

Edited, Nov 14, 2019 16:29

You can request a feature to Episerver at

Nov 14, 2019 17:09

Hi Flemming,

You can override the default behavior by below custom code.


function (
    return declare([SimpleContainer], {
        //constructor: function () {},

        postCreate: function () { /* PostCreate fires too soon, and the tab strip is not completely rendered */ },

        startup: function () {
            // Use Jquery to select the tab we manually want to change to, and click it:
            var tabElement = $("div.dijitContentPane span.tabLabel:contains('Additional content')");
            if ($(tabElement).length) {


More information is available here

Nov 16, 2019 14:07

You'll still have to figure out what tab was selected right before the page gets published...

Nov 17, 2019 23:41
* 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.