If you like to replace your SharePoint Online root site collection to different site collection, Microsoft has released Invoke-SPOSiteSwap -powershell command. This is handy, for example, when you are creating intranet by using modern SharePoint Communication Sites. Invoke-SPOSiteSwap is pretty simple command. You just have to have Source Site Collection URL, Target Site Collection URL, …
Continue reading Incorrect site url in Hub Site Navigation after Invoke-SPOSiteSwap