You are working within the WordPress framework, and it has all sorts of its own functionality that are not part of PHP, even if they are written in it. Your Wp_redirect() for example, is unique to that environment.
Now, for a normal web page, you could redirect from the local page using javaScript, with, for example, location.assign(...target url...).
PHP is aware of the page that you came from when you access it on the server, but how could it or any application know where it is to go next? You need a list of some sort. Or links.
But most of all, if you plan on using php, then you should learn it.
Try
HERE[
^]. It worked for me