Skip to content
Snippets Groups Projects
Commit 18688d86 authored by Clayton, Brandon Scott's avatar Clayton, Brandon Scott
Browse files

redirect aws apps

parent 1d284916
No related branches found
No related tags found
1 merge request!538Internal Applications
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',
},
];
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment