Try our conversational search powered by Generative AI!

Routing with Angular 2 and EpiServer


Is it possible for Angular 2 to ignore whatever comes before a route/path? I'm using Angular 2 on my EpiServer website. When I press a link using Angular, it removes whatever path that comes before it.

For example:

  • User navigates to /jobs/application/step1.
  • He or she performs some action on the page, then presses a button to go to /jobs/application/step2.
  • Angular then removes /jobs/application/ from the path and the url becomes /step2.

Is it possible for Angular to continue using the current path and put the step 2 path on /jobs/application/step2?

Jul 03, 2018 11:32

It sounds like you have something wrong in the angular routing. Can you share example of your routes? Are you using child routes?

Aug 01, 2018 12:12

view this example:

Jan 16, 2019 14:00
This thread is locked and should be used for reference only.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.