Changing the route is recommended
➊ It is narrated from Jabir (may Allah be pleased with him) that:
كان النبى صلى الله عليه وسلم إذا كان يوم عيد خالف الطريق
“On the day of Eid, the Prophet ﷺ would change his route.”
Reference: بخاري: 986 , كتاب الجمعة: باب ما خالف الطريق إذا رجع يوم العيد
➋ It is narrated from Abu Hurayrah (may Allah be pleased with him) that:
كان النبى صلى الله عليه وسلم إذا خرج يـوم الـعـيـد فـي طـريـق رجع فى غيره
“When the Prophet ﷺ went out by one route on the day of Eid, he would return by another route.”
Reference: صحيح: صحيح ترمذى: 446 , كتاب الجمعة: باب ما جاء فى خروج النبى إلى العيد فى طريق و رجوعه من طريق آخر , Sunan al-Tirmidhi: 541 , ابن ماجة: 1301 , أحمد: 338/2 , حاكم: 296/1 , ابن خزيمة: 1468