I want to set a page of subsite as home page of its parent site. Is it possible?
-
10-10-2020 - |
Pergunta
I want to set a page of subsite as home page of its parent site. Is it possible ?
Solução
You can use PowerShell. Something like this:
$web = Get-SPWeb -Identity http://yourportalurl.ru
$folder = $web.RootFolder
$folder.WelcomePage = "filter/Lists/presidents/AllItems.aspx"
$folder.Update()
Url of WelcomePage must be relative url (not started with "/"). In my example I set list view of subsite.
Outras dicas
You can't do it in browser settings. You could add a content editor webpart (or script editor web part, depending on your version) to the home page of the parent site that redirects to the subsite page using javascript.
Licenciado em: CC-BY-SA com atribuição
Não afiliado a sharepoint.stackexchange