fix: fixed links on new 404 page, fixes #9493

This commit is contained in:
Torkel Ödegaard
2017-10-12 15:26:49 +02:00
parent b5727949fd
commit e7b718ed7a
4 changed files with 9 additions and 7 deletions

View File

@@ -1,19 +1,21 @@
define([
'angular',
'app/core/config',
'../core_module',
],
function (angular, coreModule) {
function (angular, config, coreModule) {
'use strict';
coreModule.default.controller('ErrorCtrl', function($scope, contextSrv, navModelSrv) {
$scope.navModel = navModelSrv.getNotFoundNav();
$scope.appSubUrl = config.appSubUrl;
var showSideMenu = contextSrv.sidemenu;
contextSrv.sidemenu = false;
$scope.$on('$destroy', function() {
$scope.contextSrv.sidemenu = showSideMenu;
contextSrv.sidemenu = showSideMenu;
});
});