Hi, i’m making PWA, and I need navigate back (with back transitions) to custom route (not parent).
With button all works
<ion-button [routerLink]="['','someroute']" routerDirection="back">
<ion-icon slot="icon-only" name="arrow-back"></ion-icon>
</ion-button>
But how can I do it with router.navigate()
?
There is Location.back()
, but it’s not good when current route was first (users can open my app not at root route, and Location.back()
will return them to their history)