Standard MediaWiki behavior: When a link is rendered from wikitext and the user is on the same page that the link is referencing the [a] element is rendered without a href attribute and with the classes selflink mw-selflink. This is a sensible way and gives styling opportunities.
However if File: or Image: is used with the link-parameter the same does not apply. The link is rendered with a href attribute and without the classes selflink mw-selflink.
Could you please make the behavior consistent betweens text links and image links and use selflink mw-selflink also for File: and Image:?