diff --git a/frontend/app/components/routing/ui-router.config.ts b/frontend/app/components/routing/ui-router.config.ts index 4bf693a81c..32c2532bd3 100644 --- a/frontend/app/components/routing/ui-router.config.ts +++ b/frontend/app/components/routing/ui-router.config.ts @@ -212,6 +212,7 @@ openprojectModule .run(($location:ng.ILocationService, $rootElement:ng.IRootElementService, + $timeout:ng.ITimeoutService, $rootScope:ng.IRootScopeService, $state:ng.ui.IStateService, $window:ng.IWindowService) => { @@ -232,7 +233,7 @@ openprojectModule const stateName = el.data('uiRoute'); const params = $rootScope.$eval(el.data('uiRouteParams')) || {}; - $state.go(stateName, params); + $timeout(() => $state.go(stateName, params)); event.preventDefault(); return false; } catch(e) {