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 220.127.116.11 and need HR schema objects to run)