From 7a2a5d3846ee7577d57cc7222c22ea2a904b7934 Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Fri, 13 Sep 2019 11:20:16 +0200 Subject: [PATCH] Redirect back to app grid if app does not exist --- src/views/app.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/views/app.js b/src/views/app.js index 80444b64f..851b3b7e2 100644 --- a/src/views/app.js +++ b/src/views/app.js @@ -502,6 +502,7 @@ angular.module('Application').controller('AppController', ['$scope', '$location' Client.onReady(function () { Client.getApp(appId, function (error, app) { + if (error && error.statusCode === 404) return $location.path('/apps'); if (error) return Client.error(error); $scope.app = app;