Adds corrected redirect links and matching logic for redirect urls