I want to open a new tab in which I make a call to a function from my own server (The one is below). The reason I want to do this is to be able to redirect the user from the server and not the frontend. I want to open a new tab in which I make a call