diff --git a/src/app/config.js b/src/app/config.js index 726b108eea..04ba60b80a 100644 --- a/src/app/config.js +++ b/src/app/config.js @@ -1,7 +1,8 @@ angular .module('bit') - .config(function ($stateProvider, $urlRouterProvider, $httpProvider, jwtInterceptorProvider, $uibTooltipProvider, toastrConfig) { + .config(function ($stateProvider, $urlRouterProvider, $httpProvider, jwtInterceptorProvider, $uibTooltipProvider, + toastrConfig) { jwtInterceptorProvider.urlParam = 'access_token2'; var refreshPromise; jwtInterceptorProvider.tokenGetter = /*@ngInject*/ function (config, appSettings, tokenService, apiService, jwtHelper, $q) { @@ -120,7 +121,7 @@ angular abstract: true }) .state('backend.org.dashboard', { - url: '^/organization', + url: '^/organization/:id', templateUrl: 'app/organization/views/dashboard.html', controller: 'organizationDashboardController', data: { pageTitle: 'Org Dash' } diff --git a/src/app/settings/settingsController.js b/src/app/settings/settingsController.js index 922a2a708f..ce37a12ec7 100644 --- a/src/app/settings/settingsController.js +++ b/src/app/settings/settingsController.js @@ -71,7 +71,7 @@ }; $scope.viewOrganization = function (id) { - $state.go('backend.org.dashboard'); + $state.go('backend.org.dashboard', { id: id }); }; $scope.twoFactor = function () {