Forum Discussion
Ravi Chandra
Jul 07, 2018Copper Contributor
Convert Classic root site to Communication site
In our recent intranet projects, we recommend users to go with main Intranet site using communication site template and we expect that to be the root site collection of the tenant. The issue is ever...
Deleted
Jul 07, 2018As Juan said not supported. In the near future they are adding the ability to change the navigation to either left, top or none. This will let normal left nav looking modern sites look like comm sites. Just have to wait for that feature.
What I’ve done is just created a comm site as our landing page and pointed everyone to it. And on the toot collection made a classic page he home page and put a redirect on it to redirect to the comm site. Been working fine.
What I’ve done is just created a comm site as our landing page and pointed everyone to it. And on the toot collection made a classic page he home page and put a redirect on it to redirect to the comm site. Been working fine.
- Ravi ChandraJul 07, 2018Copper Contributor
Thank you Juan and Chris,
As of now, I will take the redirect option, so users land on the Comm site from root site collection.
Thanks!
Ravi
- Marc VanderstraetenSep 04, 2018Brass Contributor
How do you make this redirect work. Can you provide a step-by-step approach?
- DeletedSep 04, 2018Yeah. Tomorrow when I get in. But it’s just a response redirect script web part on the homepage. Just make a 2nd blank page and put the redirect script on it. Then set it as homepage. That way you can always get back to your default.aspx if you have too. Anyway if you need more instruction let me know and I’ll do some screens and the script.
- Ravi ChandraSep 04, 2018Copper Contributor
Super simple...
On the root site collection add a classic page and add a script editor webpart. Paste the below code. Update the site URL.
=================================
<script>
var wikiInEditMode = document.forms[MSOWebPartPageFormName]._wikiPageMode.value;
if (wikiInEditMode == "Edit")
{
// wiki page is in edit mode
}
else
{
// wiki page is not in edit mode
location.href = 'NEW SITE URL';
}
</script>===========================================
Ravi