In Ionic 4.1 / Angular 7.2.2, when navigating between pages, this works fine:
<a [routerLink]="'/myPage'" [routerDirection]="'forward'">Navigate!</a>
However I am now in a position where I wish to navigate from Route A to Route A. I.e. have a link on my HomePage, that opens a new instance of HomePage on top of the navstack.
Both pages share the same route in app-routing.module.ts, namely:
{
path: 'mypath/:id',
component: HomePage
}
Since the value of :idis different, how the page renders will differ. I need two (or more..) different instances of the HomePage in the navstack, since backward navigation should also be possible.
What is the recommended way to solve this with Ionic and the Angular router?