import { getAngularModule , getServices , getUrlTracker } from '../../opensearch_dashboards_services' ; getAngularModule ( ) . config ( ( $routeProvider ) => { $routeProvider . otherwise ( { resolveRedirectTo : ( $rootScope ) => { const path = window . location . hash . substr ( 1 ) ; getUrlTracker ( ) . restorePreviousUrl ( ) ; $rootScope . $applyAsync ( ( ) => { const { urlForwarding } = getServices ( ) ; const { navigated } = urlForwarding . navigateToLegacyOpenSearchDashboardsUrl ( path ) ; if ( ! navigated ) { urlForwarding . navigateToDefaultApp ( ) ; } } ) ; return new Promise ( ( ) => { } ) ; } , } ) ; } ) ;