I would check the node closes to the clickpoint,
do a trace (or more advanced check) to see if it is reachable.
Then let the player follow the path toward the endnode, and check every second or so,
if the path could be reached dirctly now, and then go to the target in a straight way.