Onesignal - redirects


Hi everybody
I use OneSignal for push notifications.
I need to do async the notificationOpenedCallback function, because if the user open a notification, he need go to page X and if the user open the app, he need go to Homepage, but when I try to do it, all the time redirects to homepage. The function when I think do the magic is there:


Any idea?

Thank you very much!


Nobody can help me? thans!


I don’t understand what you are trying to do. Please explain.