I’ve no idea what the plugin does, there’s several ways to handle popups. It’s possible the plugin could be hacked to work with multiple links per page.
Open the popup with window.open(). The popup does whatever then uses window.opener.location.href = url; (or something like that – untested) to redirect the parent window to a new location when it’s appropriate. Then the popup closes itself with window.close()