fix redirect URL