Programmatically set the navigation route

Is it possible to programmatically set the route for view?
In other words, can we push the navigation stack with states we want?

The use case is the following: I want to access a detailed view immediately, programmatically, but have the back button go the full navigation, although the user didn’t go it himself.