Browse Source

HUE-6678 [security] Stabilize link to the app

Enrico Berti 8 years ago
parent
commit
03fd2cc4d5
1 changed files with 3 additions and 0 deletions
  1. 3 0
      desktop/core/src/desktop/templates/hue.mako

+ 3 - 0
desktop/core/src/desktop/templates/hue.mako

@@ -752,6 +752,9 @@ ${ smart_unicode(login_modal(request).content) | n,unicode }
 
 
         self.loadApp = function(app){
         self.loadApp = function(app){
           self.currentApp(app);
           self.currentApp(app);
+          if (!app.startsWith('security')) {
+            self.lastContext = null;
+          }
           self.isLoadingEmbeddable(true);
           self.isLoadingEmbeddable(true);
           loadedApps.forEach(function (loadedApp) {
           loadedApps.forEach(function (loadedApp) {
             window.pauseAppIntervals(loadedApp);
             window.pauseAppIntervals(loadedApp);