Usage patterns
帰り道に〈場所〉に寄るto stop by a place on the way home
I stopped by a convenience store on the way home.
帰り道で〈人〉に会うto run into someone on the way home
I ran into an old friend on the way home.
帰り道を急ぐto hurry on the way home
It started raining, so I hurried on my way home.