I had html with direct links
<a href="../somedir/images/foo.jpg" >pic</a>
but I got lots of warnings about the issue listed in topic.
so I created a php page, with parameters,
<a href="bwpages.php?lrgdir=peace&lrgimg=peaceLifeMed.jpg">large version</a>
but you still see it as a direct link and report the issue;
Links should not directly target image
I think if you see php in the anchor href, it can be assumed to not be a direct link.
html page similar to this:
<p>Vancouver Peace March, 1986, Peace recruitment</p> <p>photo ©Graeme Elliott</p> <hr> <a href="bwpages.php?lrgdir=peace&lrgimg=peaceLifeMed.jpg">large version</a>
sonarqube reports the followin issue for this ^ line:
Change this link to not directly target an image.
*** last month**
*** Code Smell**
*** Not assigned**
*** 15min effort * accessibility, user-experience**