Fix to handle links properly in multipage export