I am using pdftex and the hyperref package. I have a number of automatically generated \hyperlink{<label>}{<text>}, which point to other automatically generated \hypertarget{<label>}{<text>}.
But since the two are generated independently, I don't know a priori whether a given label exists or not. The default behaviour when hyperlinking to an inexistent target is to put a "Go to page 1" link, which is completely useless for the user.
Is it possible to change that default behaviour to either
put no link when the link would be broken, or
point the link to itself?
