Sib-Router Context: Feature Request
Context(s)
I have one form create-customer
which is a child form of edit-project
and create-project
. On create-customer
save, I want to redirect to its parent form, but without the context of where I came from, how do I know where to redirect? (I solved this problem by duplicating the form)
There are other situations where a sib-link
should go "back" without it being known at runtime where "back" is. Apps commonly have timelines where I can visit any point of my history:
Suggested Solution
The router holds a navigation "stack" - an array of pages which represents the history of pages visited. It can be navigated by using push
and pop
on the stack. This is the solution used in Ionic: https://ionicframework.com/docs/v3/api/navigation/NavController/