From c8f50fc11722845f793a08557a7e9a9540571934 Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Tue, 1 Oct 2019 20:04:28 +0200 Subject: [PATCH] If app is not found while app view is visible, go back --- src/views/app.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/views/app.js b/src/views/app.js index 426a97fad..21a93a1a7 100644 --- a/src/views/app.js +++ b/src/views/app.js @@ -959,6 +959,7 @@ angular.module('Application').controller('AppController', ['$scope', '$location' callback = callback || function () {}; Client.getApp($scope.app.id, function (error, app) { + if (error && error.statusCode === 404) return $location.path('/apps'); if (error) return callback(error); // Immediately move to debug view on error