Perspective Session Redirect After Auth Challenge

Hi Ignition community,

Good day.

I would like to check if it is possible to redirect to a page/view after performing authentication challenge.

For example the user is in View A, and there is a button in that view where every time the user presses the button, an authentication challenge will be done. After the authentication challenge is success or not, I would like the session to go back to the same page instead of different page.

I am using Perspective with Ignition 8.1.48.
Hoping for solutions from you guys.

Thank you in advance!
Best regards
Jai

We have normally done auth challenges and sent the current page to the onAuthChallengeComplete() as part of the payload, then used a message handler to trigger navigation as needed.