The implementation is fairly easy. Here is the code snippet:
The command link is hidden and aligned after goLink in page source. The additional action logics is defined in the action listener of the command link.
Here is the demo to download. (JDeveloper 184.108.40.206 and need HR schema objects to run)