Using Android Architecture's Navigation component, I have the following navigation graph
-> [Home] -> [Articles List] -> [Specific Article]
I also have a deeplink to [Specific Article]
. When it is opened, navigating up currently goes to [Home]
.
I'd like to synthesise a backstack such that navigating up instead goes back to [Articles List]
(and then on to [Home]
if navigating again).
What is the Navigation way of doing this?