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