Handle links properly