I have a team site with 100+ sub sites. On home page there is SharePoint logo in top left corner (the default one). If you click on that logo then it takes user to root site home page. If you are inside a sub site then clicking on that logo takes user to home page of sub site.
What I want is when user clicks in any of the sub site then it should take user to home page of root site. I opened Master Page in SPD and updated hard coded root site URL.
Now when I am on root site home page then clicking on logo takes user to root site home page (which was already working that way). But problem is in sub site logo still takes user to subsite home page. They appear to be using separate Master Pages.
These sub sites are created pro grammatically using template.
How do I fix this issue? Is it possible to run some powershell or some setting in site collection so all sub sites logo take user to root site home page?