Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

213
Visualizações
routing in angular 12

I have used angular 12 in VSCode and Web Api 2 to develop my application.

my routing looks like this

const routes: Routes = [
    { path: '', component: HomeComponent, canActivate: [AuthGuard] },
    { path: 'home', component: HomeComponent, canActivate: [AuthGuard] },
    { path: 'login', component: LoginComponent },
     .......// other routes in the application
];

 @NgModule({
     imports: [RouterModule.forRoot(routes, { relativeLinkResolution: 'legacy' })],
     exports: [RouterModule]
 })
 export class AppRoutingModule { }

I have deployed my application in Dev server. The url looks something like this

https://myDomain/MyApplicationFolder/Login

Login page is rendered perfectly. All the routing works fine. my only concern is

if I type

https://myDomain/MyApplicationFolder/  I get forbidden error.

enter image description here

Is there anyways that i get redirected to

https://myDomain/MyApplicationFolder/home 

if anyone types

https://myDomain/MyApplicationFolder/
over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

This seems more of a problem with IIS, you should look into how you configured you server.

Is anonymous authentication on?

If you've configured an URL rewrite for this you could possibly rewrite the root path to /Home in IIS.

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda