When working in liquid files, is there a way to validate a link's href before a user clicks on it (to make sure it doesn't go to a 404 page)? I haven't been able to find anything about this. If there isn't a standard liquid variable I can use then it seems we would need to be able to access all known URLs of the store, yea?
Context: On blog posts, I need to make the author's name linkable to their bio page, but not every author will have a bio page. For those that don't have a bio page, it needs to link elsewhere.
Any ideas or suggestions?