Forum Discussion
How do I restore a Modern homepage that was deleted?
- Apr 30, 2020
Niki Felker I know your question was from 6 months ago, but I just had a similar problem, except that in my case a user had deleted the home page almost a year ago. I found that you can create a new blank modern page by appending "/_layouts/CreateSitePage.aspx" to the end of your site URL. e.g. https://yourtenant.sharepoint.com/sites/yoursite/_layouts/CreateSitePage.aspx
That will let you create a blank modern page.
If you want to create a page with the default modern home page layout, you can use the Pnp (Patterns and Practices) powershell module for Sharepoint with the following couple of lines:Connect-PnPOnline -Url "https://yourtenant.sharepoint.com/sites/yoursite"
Add-PnPClientSidePage -Name Home -LayoutType Home
(of course you'll need to have the PnP SharePoint module installed for that to work)
That will create a modern page named Home, with the Home layout, in the site pages library.
frostydog1927 thanks for your post what I used indeed!
Just would like to add that after creating the new page it will need to be set as the Homepage by going to the "Site Pages" library and selecting the page and clicking on the "Make homepage" option.
Thank you SO MUCH FOR THIS Ralph Boccalini
I had deleted an announcement on one of my sharepoint sites and it killed the entire home page. I couldn't find it in the trash or anywhere.
This worked to add the extra "createsitepage" at the end of my site URL and then go into the page library and set it as a homepage. HURRAH!