Can we add pages from "Site Pages" directory to "Pages" directory in SharePoint Online

Roopak Sahoo 51 Reputation points
2020-11-04T15:48:00.313+00:00

Hi All

I need to set my modern page as the current home page for the site, my current home page url is /Pages/Home.aspx

where as my new modern page url is /Site Pages/Home.aspx, i don't want to change my Home page old url.

So, is it recommended or good practice to copy the modern page from "Site Pages" directory to classic "Pages" directory.??

I copied the modern page to the "Pages" directory but when i open the page it is showing blank.

i have added the content type "Site Pages" to the "Pages" library and set it as the default content type however it is still displaying a blank page.

I found the content type of my current modern page is "wiki page", so i tried to add it in "Pages" directory but under document content type and other categories, i am not getting the "wiki page" content type.

but when i go to "site setting" --> "content type" option. there under "document content type" category, i can see the "wiki page content type"

whereas when i go to "Page" document library and and try to add the content type in the content type box under "All Groups"

category it is not showing the "wiki page" content type.

How can i added the content type of "wiki page" to the document library??

Microsoft 365 and Office | SharePoint | For business | Windows
Microsoft 365 and Office | SharePoint Server | Development
{count} votes

Accepted answer
  1. Allen Xu_MSFT 13,861 Reputation points
    2020-11-06T10:10:37.13+00:00

    Hi @Roopak Sahoo ,

    I can reproduce you issue in my end.

    Per my test, "Pages" library is used to store publishing pages, not wiki pages.There is no OOTB workaround to add wiki page content type to "Pages" library.

    For this issue, I suggest you to go to Microsoft 365 admin center to create a service request, more professional people will help you:
    37920-2-5.png

    ----------
    Update----------
    Per my research, It appears that creation of modern pages is supported in the Site Pages library only. Additionally, you cannot change the URL of a page.

    Please find the Microsoft statement under Notes at the beginning of the page at https://support.microsoft.com/en-us/office/create-and-use-modern-pages-on-a-sharepoint-site-b3d46deb-27a6-4b1e-87b8-df851e503dec

    I hope this information has been useful, please let me know if you still need assistance.


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

3 additional answers

Sort by: Most helpful
  1. Roopak Sahoo 51 Reputation points
    2020-11-13T00:50:03.467+00:00

    Hi Allen,

    Thanks for your reply, we have our classic site Home page url as /Pages/Home.aspx we have planned to set the new Modern page but we don't want to change the Home Page Url to /SitePages/Home.aspx, we want to keep the old url as it is /Pages/Home.aspx[modern page].

    for that reason even we know that Page directory is for page layouts and site pages stores wiki pages/site pages/webpart pages, so just need to check if moving the SitePage[Home.aspx] to "Pages" directory will work or not, but however the pages has rendered with blank.

    I have already raised the service request but haven't received an confirm updates/reply on the same, whether it will support the site pages or not.


  2. Roopak Sahoo 51 Reputation points
    2020-11-24T05:16:47.81+00:00

    Hi Allen,

    Thanks for replying, any information you received from your internal team ??, kindly share with us.


  3. Roopak Sahoo 51 Reputation points
    2020-12-09T03:30:29.183+00:00

    Hi Allen,

    Thanks for your reply, yes you are right, even i have raised the service request and got the same confirmation. Thanks for the updates.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.