Routing with Angular 2 and EpiServer

Vote:
 

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?

#194792
Jul 03, 2018 11:32
Vote:
 

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

#195611
Aug 01, 2018 12:12
Vote:
 

view this example: https://tedgustaf.com/blog/2017/episerver-on-page-edit-with-angular-react-and-other-js-frameworks/

#200575
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.