fix redirect urls