mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 01:13:23 -04:00
Fix activeApp pattern
This commit is contained in:
parent
9a74e67621
commit
02523e6b42
1 changed files with 2 additions and 2 deletions
|
@ -26,8 +26,8 @@ define(function (require) {
|
|||
|
||||
$scope.$on('$locationChangeSuccess', function (event, uri) {
|
||||
if (!uri) return;
|
||||
var route = uri.split('#/').slice(1);
|
||||
$scope.activeApp = route ? route[0] : null;
|
||||
var route = uri.match(/#\/([^\/]*)/);
|
||||
$scope.activeApp = route ? route[1] : null;
|
||||
});
|
||||
|
||||
$scope.opts = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue