If you move the mouse cursor over the link, gray markers are displayed at its ends. By pulling on one of these markers, you can control the link.
To attach one of the ends of the connection to the block, you need to pull the corresponding gray marker and release it on the block of interest.