When using the link render hook that warns/errors on broken links, how can I link to generated page?

Modify the hook to ignore page resolution when the destination contains something (of your choosing) in the query string, e.g.

[link text](/foo/bar?validate=false)