Conditionally apply link