Auto redirect generated url

In a UI form, I've a button 'Launch' which has integration to an external system. The result of integration is an URL with a one time password from the external system. I required to action on the generated URL without user interaction (it should be like someone clicking on the URL to open the webpage or redirecting the URL to open the webpage). Is there a way we can achieve this?

  Discussion posts and replies are publicly visible