Hi,
As we found out, there are some differences between code in bundle, supplied with content server (distrib and updates and csui sdk libraries.
The most annoying is in method leaveWorkitemPerspective.
In content server, it routes to home screen, while version from sdk returns user into previous container (preferable).
Now we trying to guess the reasons they are diff..
Code:
support\webwork\bundles\workflow-all.js:
_leaveWorkitemPerspective: function() {
var e = this.model.get("url_org");
e && e.length > 0 ? window.open(e, "_self") : this.options.context.getModel(u).set("id", "")
}
csui-sdk-16.2.9 (lib/src/workflow/widgets/workitem/workitem/workitem.view.js)
_leaveWorkitemPerspective: function () {
if (window.location.href.indexOf("reload_classic_ui=true") > 0) {
var url = Utils.validateURL(this.getUrl());
if (url && url !== '') {
window.open(url, "_self");
} else {
this._navigateBack();
}
} else if (this.model &&
(this.model.get('isDocDraft') === true || this.model.get('isDoc') === true)) {
this._navigateToDocParentNode();
} else if (this.model.get('url_org') && this.model.get('auto_display')) {
location.href = this.model.get('url_org');
} else if (this.model && this.model.get('isDraft') === true && this.model.get("parent_id")) {
this._navigateToDocParentNode();
} else {
this._navigateBack();
}
}