ViewNavigator does not work in Fragments

Hi Team,
I am using viewNavigator in the fragment for navigating back to main screen after running the backgroundTaskThread on fragment.
Scenario:

  1. Trying to show different screens based on logged-in user’s role.
  2. If user is of “Consultant” role, user need to connect to tenant first (Done through Fragment)
  3. After successful tenant connection in fragment screen, want to redirect or navigate it back to Mainview with different fragment screen.
  4. Unable to navigating but nethier jmix throws any error or exception.
  5. Upon refresh of page, main view displays expected fragment.

Hi,

Could you please attach a demo project that reproduces the problem?

Regards,
Gleb