'What happens when pressing back using a deeplink?

I have an app that opens at screen A.
The screen has multiple options to open various other screens e.g. B, C, D and F.
I have created a deeplink that opens screen B.
Question: When I start screen B with the deeplink, if I press the back button the application closes.
Is this the expected behaviour? Is it possible to start B via a deeplink and on back go to screen A? I.e. somehow is on the stack?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source