From 6f793b327f9d2e6213e3433d23162287e8d7c157 Mon Sep 17 00:00:00 2001 From: Kenneth Skovhede Date: Mon, 27 Feb 2017 00:06:59 +0100 Subject: [PATCH] Added check to ensure the menu shows "Home" as active, when loading without a `#` path --- .../Server/webroot/ngax/scripts/controllers/AppController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Duplicati/Server/webroot/ngax/scripts/controllers/AppController.js b/Duplicati/Server/webroot/ngax/scripts/controllers/AppController.js index d7fa426ae..d331f1386 100644 --- a/Duplicati/Server/webroot/ngax/scripts/controllers/AppController.js +++ b/Duplicati/Server/webroot/ngax/scripts/controllers/AppController.js @@ -50,7 +50,7 @@ backupApp.controller('AppController', function($scope, $cookies, $location, AppS }; function updateCurrentPage() { - if ($location.$$path == '/') + if ($location.$$path == '/' || $location.$$path == '') $scope.current_page = 'home'; else if ($location.$$path == '/addstart' || $location.$$path == '/add' || $location.$$path == '/import') $scope.current_page = 'add';