I made a backup restore of some site collcetions from production to dev environment. Then I noticed that sometimes when I clicked on the global navigation items on my dev, they were pointing to production.
It looks like the develoeprs of this used absolute urls in the global navigation instead of relative.
I want a script that iterates over all global navigation items, and change that. In that way, I can do the backup restore again and everything should work.
ANy idea how to iterate over all global navigation items in powershell?