This issue is now you will not get new page views. The code you removed updated the current page even in a SPA, which MAAS mostly is (only some settings pages are not).
The reason this was linked to angular code is because of this:
$rootScope.$on('$routeChangeSuccess', function() {});
This is called when the HTML5 route is changed, something that you are completely losing with your change.
« Back to merge proposal
This issue is now you will not get new page views. The code you removed updated the current page even in a SPA, which MAAS mostly is (only some settings pages are not).
The reason this was linked to angular code is because of this:
$rootScope. $on('$routeChan geSuccess' , function() {});
This is called when the HTML5 route is changed, something that you are completely losing with your change.