我正在开发Angular 4.5应用程序,我需要使用Azure-B2C进行身份验证 . 我已经完成了身份验证,但我在azure中回复Url配置时收到一个错误或另一个错误

我在Angular应用程序中设置路由为http://localhost:4000/#/app/dashboard这是始终称为home的默认路由

import { Routes, RouterModule }  from '@angular/router';
 import { Layout } from './layout.component';

 const routes: Routes = [
{ path: '', component: Layout, children: [
{ path: '', redirectTo: 'dashboard', pathMatch: 'full' },
{ path: 'dashboard', loadChildren: '../dashboard/dashboard.module#DashboardModule' },

]}
];

     export const ROUTES = RouterModule.forChild(routes);

场景一个错误

如果我在Azure中设置 - >应用程序'Reply URL' http://localhost:4000,我设法获得Azure登录页面但是在登录为azure之后的throw错误找不到返回URL . 这通常是

http://localhost:4000/#state=

场景二错误

如果我设置回复url http://localhost:4000/#/app/dashboard然后它找不到azure的登录页面

我需要帮助来配置Azure的路由以使用身份验证令牌回复 .

任何关于路由的建议都会很棒