Prevent auto-switch to the leftmost tab after Publish

Vote:
 

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.

#209472
Edited, Nov 14, 2019 16:29
Vote:
 

You can request a feature to Episerver at

https://support.episerver.com/hc/en-us/requests

#209474
Nov 14, 2019 17:09
Vote:
 

Hi Flemming,

You can override the default behavior by below custom code.

define([
"dojo/_base/declare",
"epi/shell/layout/SimpleContainer"
],

function (
    declare,
    SimpleContainer
)
{
    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) {
                $(tabElement).trigger("click");
            }
        }

    });
}

More information is available here

#209531
Nov 16, 2019 14:07
Vote:
 

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

#209545
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.