diff --git a/projects/nshmp-apps/src/app/dev/dev.routes.ts b/projects/nshmp-apps/src/app/dev/dev.routes.ts index b994ff493120f42dcddcb14a01420d4e706e7ea7..64f3fdc463a8381f38e58a7bc5cbe5ad0f060168 100644 --- a/projects/nshmp-apps/src/app/dev/dev.routes.ts +++ b/projects/nshmp-apps/src/app/dev/dev.routes.ts @@ -1,3 +1,4 @@ +import {HttpParams} from '@angular/common/http'; import {Routes} from '@angular/router'; import {devGmmRoutes} from './gmm/gmm.routes'; @@ -29,6 +30,20 @@ const routes: Routes = [ children: devGmmRoutes(), path: 'gmm', }, + // Redirect AWS applications + { + children: [ + { + path: '**', + redirectTo: params => { + const url = params.url.pop(); + const queryParams = new HttpParams().appendAll(params.queryParams); + return `/internal/aws/${url.path}?${queryParams.toString()}`; + }, + }, + ], + path: 'aws', + }, ]; /**