Hey @imad !
You might want to look into using the api.redirect.sendUserTo() function as outlined here.
api.redirect.sendUserTo()
Let us know if that does the trick!