Fix further URL-error in link replace function