Replace function in core-siebel.js file
We need to replace the following functions in OOTB core-siebel.js file: ForceHistoryEntry and UpdateHistoryState. New code can be found below, this is to set document.title with Application Title.
What is the best approach to replace the functions from OOTB core-siebel.js file?
We updated Manifest Administration to use file from CUSTOM folder under \PUBLIC\SCRIPT\SIEBEL and we inactivated the OOTB entries for core-siebel.js file however custom file does not get downloaded.
New code:
function ForceHistoryEntry(e)
{
var t = history.state,
n = {};
n.hnact = t.data.hnact, n.hex = t.data.hex, n.hnactf = "SiebelApp.contentUpdater.ProcessHistoryInfo( '" + e.iframeOrig + "', '" + e.iframeNow + "', '" + t.data.hnact + "' );", document.title = SiebelApp.Environment.GetAppTitle(), history.pushState(n, t.title, t.url)