Skip to content
Snippets Groups Projects
Commit 6c80a6bd authored by gnaegi's avatar gnaegi
Browse files

OO-3242 execute pushstate after invoke to fix wrong history title

parent d74114b8
No related branches found
No related tags found
No related merge requests found
......@@ -1457,15 +1457,21 @@ function o_XHREvent(targetUrl, dirtyCheck, push) {
dataType: 'json',
success: function(data, textStatus, jqXHR) {
try {
o_ainvoke(data);
if(push) {
var businessPath = data['businessPath'];
var documentTitle = data['documentTitle'];
var historyPointId = data['historyPointId'];
if(businessPath) {
o_pushState(historyPointId, documentTitle, businessPath);
try {
var businessPath = data['businessPath'];
var documentTitle = data['documentTitle'];
var historyPointId = data['historyPointId'];
if(businessPath) {
// catch separately - nothing must fail here!
o_pushState(historyPointId, documentTitle, businessPath);
}
} catch(e) {
if(window.console) console.log(e);
}
}
o_ainvoke(data);
} catch(e) {
if(window.console) console.log(e);
} finally {
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment