Topo2: Fixing the incorrectly merged patch (13089)
Change-Id: I35d1cdb343fc15b6b67fa10f5fc8f5fb3677c547
diff --git a/web/gui/src/main/webapp/onos.js b/web/gui/src/main/webapp/onos.js
index 2e893d3..f7c8046 100644
--- a/web/gui/src/main/webapp/onos.js
+++ b/web/gui/src/main/webapp/onos.js
@@ -151,11 +151,13 @@
$routeProvider.when('/' + vid, {
controller: viewCtrlName(vid),
controllerAs: 'ctrl',
- templateUrl: viewTemplateUrl(vid)
+ templateUrl: viewTemplateUrl(vid),
// Disable reload on $loc.hash() changes for bookmarked topo regions
- // reloadOnSearch: (vid !== 'topo2')
+ reloadOnSearch: (vid !== 'topo2')
// <SDH> assume this is not needed for ?regionId=... query string
+ // <SBM> Yes this is still needed. Without it the page will reload when navigating between
+ // regions which loads the new regions without a clean transition to it.
});
}
});