Why page open in classic Mode

Mohammad Qasim 576 Reputation points
2020-12-23T13:10:56.41+00:00

Hi,

I am using webpart page on SharePoint online

I have different link using left navigation , as I click on "plant" link why it opens page in classic mode

Solution Required: How to open same link in Modern Layout not classic.

Below image for reference
50777-openpageinclassicmode.png

SharePoint Server Development
SharePoint Server Development
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Development: The process of researching, productizing, and refining new or existing technologies.
1,624 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Li Zhang_MSFT 1,566 Reputation points
    2020-12-24T08:54:33.227+00:00

    Hi @Mohammad Qasim ,

    Quote from Microsoft:

    “Modern pages can only use modern web parts and classic pages can only use classic web parts.”

    Since web part pages are classic experiences, when we open the page it will show in classic mode by default.

    If you want to open web part page in Modern Layout, we could transform web part page from classic mode to modern via using PnP PowerShell in SharePoint Online Management Shell.

    Use the below PowerShell to transform classic pages to modern pages:

    Connect to the site:

    Connect-PnPOnline -Url https://YourSiteURL  
    

    Modernize page. aspx:

    ConvertTo-PnPClientSidePage -Identity WebpartPageName.aspx  
    

    There are a few things to notice:

    1.Web parts on the Classic page are replaced with modern 1st party web parts.
    2.Web parts not supported in the Modern SharePoint are not migrated.

    Then you will see Migrated_WebpartPage. aspx is created and they are in modern mode.

    51084-migrated-webpartpage.png

    51083-migrated-webpartpage-2.png

    Classic and Modern experiences reference:

    https://support.microsoft.com/en-us/office/sharepoint-classic-and-modern-experiences-5725c103-505d-4a6e-9350-300d3ec7d73f

    https://support.microsoft.com/en-us/office/classic-and-modern-web-part-experiences-3fdae6c3-8fc1-49ab-8708-8c104b882e64

    Transform PnP PowerShell and its parameter introduction:

    https://learn.microsoft.com/en-us/powershell/module/sharepoint-pnp/convertto-pnpclientsidepage?view=sharepoint-ps


    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.


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.