最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

amazon s3 - How to control the deep links of my angular application deployed in an S3 bucket. Accessing from an ALB? - Stack Ove

programmeradmin1浏览0评论

I have built my application guided by this link / but when I try to enter different links it doesn't allow me. For example, my application enters index.html as the first view and my ALB redirects to my index.html as on the page, I can log in until then my path is mydomain/login but when the path changes, for example in my case to mydomain/welcome, the application is lost, I have read that it uses hash but I don't know exactly how.

My app-routing:

const routes: Routes = [
  { path: 'login', component: LoginComponent, pathMatch: 'full' },
  { path: 'conocimiento', component: ConocimientoComponent },
  { path: 'miequipo', component: MiequipoComponent },
  { path: 'capacidad', component: CapacidadComponent },
  { path: 'talentos', component: TalentosComponent },
  { path: 'welcome', component: WelcomeComponent},
  { path: 'aliado', component: AliadoComponent },
  { path: 'admin', component: AdminComponent },
  { path: 'admproveedores', component: AdmProveedoresComponent },
  { path: 'perfil', loadChildren: () => import('./perfil/perfil.module').then(p => p.PerfilModule) },
  { path: 'financierati', component: FinancieratiComponent},
  { path: '', component: WelcomeComponent, pathMatch: 'full' }
];

@NgModule({
  imports: [RouterModule.forRoot(routes, { useHash: false })],
  exports: [RouterModule]
})
export class AppRoutingModule { }

My ALB

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论