How does a guide dog know where the person wants to go?

THEY ARE . Extensively trained not to let the person go towards trouble.
They dont. Guide dogs are trained to avoid obstacles, not lead someone to a particular destination.