Change main HUB site URL

%3CLINGO-SUB%20id%3D%22lingo-sub-2110854%22%20slang%3D%22en-US%22%3EChange%20main%20HUB%20site%20URL%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2110854%22%20slang%3D%22en-US%22%3E%3CP%3EHey%20people%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20been%20building%20a%20new%20intranet%20in%20SharePoint%20Online.%20It%20is%20build%20using%20a%20HUB%20that%20contains%20several%20site%20collections%20and%20has%20a%20heavy%20use%20of%20the%20HUB%20navigation.%26nbsp%3B%3C%2FP%3E%3CP%3EAll%20that%20is%20fine%2C%20but%20I%20am%20now%20in%20a%20situation%20where%20I%20need%20to%20change%20the%20URL%20of%20the%20main%20HUB%20site%20and%20as%20it%20turns%20out%20that%20is%20simply%20not%20possible.%3CBR%20%2F%3E%3CBR%20%2F%3EAll%20others%20site%20collections%20can%20be%20changed%2C%20but%20for%20some%20reason%20the%20main%20HUB%20cannot%20be%20changed.%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3EIn%20my%20test%20enviroment%20I%20did%20however%20manage%20to%20change%20it%20anyway%20by%20disassociating%20the%20main%20HUB%20from%20the%20HUB%20itself.%20Needles%20to%20say%20this%20%22removes%22%20the%20entire%20HUB%20and%20all%20of%20the%20other%20site%20collections%20in%20the%20HUB%20are%20no%20longer%20associated%20with%20it%20obviously%2C%20but%20it%20also%20allowed%20for%20a%20change%20of%20the%20URL%20since%20the%20site%20in%20question%20is%20not%20longer%20a%20main%20HUB%20site.%26nbsp%3B%3CBR%20%2F%3EAfterward%20I%20went%20in%20and%26nbsp%3Bassociated%20the%20site%20with%20the%20HUB%20again%20and%20it%20seems%20SharePoint%20remembered%20this%20HUB%2C%20since%20I%20could%20chose%20to%26nbsp%3Bassociate%20my%20site%20to%20a%20HUB%20that%20essentially%20no%20longer%20existed.%20But%20this%20being%20a%20test%20I%20did%20just%20that%20and%20lo%20and%20behold%2C%20the%20HUB%20was%20recreated%20and%20all%20of%20the%20site%20collections%20that%20was%20in%20it%20before%20was%20automatically%26nbsp%3Bassociated%20again%20and%20everything%20seems%20to%20be%20working%20fine.%3CBR%20%2F%3E%3CBR%20%2F%3ENow...that%20is%20all%20fine%20and%20well%20to%20test%20on%20a%20HUB%20where%20there%20is%20no%20risk%20involved.%20Another%20thing%20is%20to%20do%20this%20on%20an%20Intranet%20ready%20to%20go%20live.%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3ESo%20the%20questions%20is...even%20though%20this%20is%20possible%2C%20MS%20has%20put%20this%20restriction%20in%20there%20for%20a%20reason%20but%20why%3F%20There%20is%20an%20easy%20work%20around%2C%20but%20what%20is%20the%26nbsp%3Bconsequence%20of%20doing%20this%3F%3CBR%20%2F%3E%3CBR%20%2F%3EHas%20anyone%20else%20tried%20this%20work%20around%3F%20And%20what%20are%20your%20thoughts%20on%20this%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2110854%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2111591%22%20slang%3D%22en-US%22%3ERe%3A%20Change%20main%20HUB%20site%20URL%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2111591%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F476096%22%20target%3D%22_blank%22%3E%40miclarsen1%3C%2FA%3E%26nbsp%3BI%20had%20the%20same%20issue.%20I%20removed%20the%20hub%20association%20from%20all%20of%20the%20sites%20connected%20to%20the%20Hub%2C%20then%20change%20Hub%20to%20a%20non-Hub%20site%2C%20changed%20the%20URL%20and%20then%20made%20it%20a%20Hub%20again%20and%20reconnected%20sites.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20no%20adverse%20affects%20but%20I%20think%20it%20would%20be%20worth%20checking%20web-parts%20using%20the%20using%20the%20'Sites%20associated%20with%20Hub'%20scope%20after%20making%20the%20change.%20Content%20rollup%20is%20search%20based%2C%20so%20it%20may%20take%20a%20little%20time%20for%20content%20rollup%20to%20return%20results.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Contributor

Hey people,

 

I have been building a new intranet in SharePoint Online. It is build using a HUB that contains several site collections and has a heavy use of the HUB navigation. 

All that is fine, but I am now in a situation where I need to change the URL of the main HUB site and as it turns out that is simply not possible.

All others site collections can be changed, but for some reason the main HUB cannot be changed. 

In my test enviroment I did however manage to change it anyway by disassociating the main HUB from the HUB itself. Needles to say this "removes" the entire HUB and all of the other site collections in the HUB are no longer associated with it obviously, but it also allowed for a change of the URL since the site in question is not longer a main HUB site. 
Afterward I went in and associated the site with the HUB again and it seems SharePoint remembered this HUB, since I could chose to associate my site to a HUB that essentially no longer existed. But this being a test I did just that and lo and behold, the HUB was recreated and all of the site collections that was in it before was automatically associated again and everything seems to be working fine.

Now...that is all fine and well to test on a HUB where there is no risk involved. Another thing is to do this on an Intranet ready to go live. 

So the questions is...even though this is possible, MS has put this restriction in there for a reason but why? There is an easy work around, but what is the consequence of doing this?

Has anyone else tried this work around? And what are your thoughts on this?

1 Reply

@miclarsen1 I had the same issue. I removed the hub association from all of the sites connected to the Hub, then change Hub to a non-Hub site, changed the URL and then made it a Hub again and reconnected sites. 

 

I no adverse affects but I think it would be worth checking web-parts using the using the 'Sites associated with Hub' scope after making the change. Content rollup is search based, so it may take a little time for content rollup to return results.