Forum Discussion
Jeyganesh
Aug 19, 2019Brass Contributor
Default Site Collection
We are using SharePoint Oline. also, we created the two site collections as follows.
communication site - https://companyname.sharepoint.com
Teamsite - https://companyname.sharepoint.com/sites/team
Now we would like to set the default site as Teamsite.
for example if we logon the URL https://companyname.sharepoint.com it should point Teamsite. It means we need to set the default site as team site.
how can we do this?
- RobOKBronze Contributor
I'm not understanding the post replies above.
CAN a Communications Site, set as a Hub, be made the Default site with the command mentioned? We want to do this in the future and I assumed it was possible.
Thanks,
Rob.- My original test of this awhile back was actually on a hub site. The hub parent navigation link broke, but renaming the hub fixed the URL. I also unregistered the hub site, and recreated it, and it's working as the root site. I think you can move a Hub site, but do at your own risk if you have a bunch of sites joined to it.
RobOK The article doesn't say, it does say associated hub sites cannot, but nothing about the hub itself. I wouldn't trust it thou. I would break down the hub. Preform the move, then associate everything again. I'll see if I can test having a hub on the main site on my test tenant. give me a few.
- Rob EllisBronze ContributorI just re-read the article, and I stand corrected.
- Rob EllisBronze ContributorYou would have to un-hubify it, swap it, then hubify it again.
- Check into invoke-spositeswap powershell command here: https://docs.microsoft.com/en-us/powershell/module/sharepoint-online/invoke-spositeswap?view=sharepoint-ps
This can let you change the site with the default. Currently there is no way to define the home site yet. That is coming in the future.- JeyganeshBrass Contributor
I have one more question if I delete the communication site, then the team site will be set as the default site?
because we just created the SharePoint site, there is no data.
- Rob EllisBronze Contributor"The source or target sites cannot be "associated" with an Office 365 Group or a Hub Site"
(as per https://docs.microsoft.com/en-us/powershell/module/sharepoint-online/invoke-spositeswap?view=sharepoint-ps )
You cannot swap a Team site.