in src/modules/controllers/history.js [41:58]
function replaceLocationHistory(iFrameLocation) {
//Check if it's a proxy URL (Although shouldn't get here with Same Origin)
if (iFrameLocation.href.indexOf(window._proxyBase) === -1) {
console.log("This isn't a proxy url");
return;
}
var viewerHref = iFrameLocation.origin + iFrameLocation.pathname;
var resourcePath = viewerHref.replace(window._proxyBase, '');
var newAppPath = window._baseAppUrl + '/' + resourcePath;
if (newAppPath !== window.location.pathname) { //Check it's actually a different url;
window.history.replaceState({viewerHref: viewerHref}, '', newAppPath);
applicationController.checkDesktopEnabled();
}
}