fix wrong if expression in link_tag
Merge pull request #3050 from emmanuelgrognet/develop

fix wrong if expression in link_tag