Using API integration - redirect user after ending the call to a dynamic url

We are using Jitsi Meet API to integrate Jitis Meet with our own instance. When a user hangs up a call we would like to redirect the user to a specific URL with parameters that change for each user - is there a way which does not involve redirecting user from close2.html to another URL using apache config as the params change from each user Or is there a way to redirect to with parameters like close2.html?uid=123&room=456 ?

When using the external API you can listed for the readyToClose event, and redirect the user in that case.

@saghul Thank you. That worked!