Open detail page from tab tabs page and hide tabs

I am using the tabs navigation and would like to open a detail page and not have the tabs at the bottom. I can achieve this by placing my detail rout in the app-routing.module.ts file but when I click the back button, I am redirected to the default route and not the route from which I came from. For example:

I have 2 tabs - Home and Messages. When in the Messages tab I can navigate to message detail, when I click back, I go to Home tab and not Messages tab.