Return to root state when selecting a tab

I tried the same solution but it didn’t wok for me.

I created new post before I found this thread…

Details: How To Force to Root State When Tab is Pressed?

Any Suggestion?

Thanks!