Well, you'd need something more than just
# in the
href attribute but basically, yes.
This would be more like what you need:
<a href='#/id/c-40'><img src='en/assets/c5613d530484603a01785c4a4c73af99c136e048.jpg' /></a>
Although the ids generated by the build tool will not be as human-readable as 'c-40'.
I'm afraid I don't use the build tool myself (I work directly with the framework) so I'm not really the person to advise how you might find out the id of what you want to link to - or why your source code edits are disappearing...