Issue was that the jQuery is using .children() to add the event handlers but due to some changes to the HTML, the second link is no longer a direct child. I've switched this to .find() instead.