**How to open MainActivity on BackPressed or back button was pressed when deep linked activity was opened**

Let's us suppose we have activity

*www.xyz.com/abc* - **Deep linked URL**

When user click on this url ABCActivity was opened, but on back pressed the app was closed how to open HomeActivity or MainActivity