Deep Linking not working on second time clicked

Good afternoon, I’m using deeplink to open my app and send a code. But it only works for me the first time, if I leave the app in the background and use the link again, the application opens correctly but does not get to do this part:
this.deeplinks.route ({
‘/’: {}
}). subscribe …

so I can not capture the code that is sent to the app the second time.