Joel,
In the apps MapManager.js search for the _checkAppState function and make these changes (Lines 22 - 34):
_checkAppState: function() {
//URL parameters that affect map extent
var urlKeys = ['extent', 'center', 'marker', 'find', 'query', 'scale', 'level'];
var useAppState = this.appConfig.keepAppState;
if(useAppState) {
array.forEach(urlKeys, function(k){
if(k in this.urlParams){
useAppState = false;
}
}, this);
}
if(useAppState){
this.appStateManager.getWabAppState().then(lang.hitch(this, function(stateData) {
LayerInfos.getInstance(this.map, this.map.itemInfo)
.then(lang.hitch(this, function(layerInfosObj) {
this.layerInfosObj = layerInfosObj;
if(stateData.extent || stateData.layers) {
// var appStatePopup = new AppStatePopup({
// nls: {
// title: this.nls.appState.title,
// restoreMap: this.nls.appState.restoreMap
// }
// });
// appStatePopup.placeAt('main-page');
// on(appStatePopup, 'applyAppState', lang.hitch(this, function(){
// this._applyAppState(stateData, this.map);
// }));
// appStatePopup.startup();
// appStatePopup.show();
this._applyAppState(stateData, this.map);
}
}));
}));
}
},