Hi,
Not sure what is the exact issue and what can be the exact solution but you can try any of these:
1. If the condition check can be in comp2, you can define do_replace_initial_view method to replace the default view with the one you want to show
2. If the navigation is to be condition based, you can define a new window in COMP2 where you assign the desired view and publish this as an interface view, the in comp1 runtime repository define navigation to this interface view/window of comp1 instead of the main window.
However, all these are vague solutions I am suggesting based on whatever I could understand. If you could explain your requirement in more detail, that will help.
Thanks,
Rupali