Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

210
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!