In this blog, we are going to discuss how to copy a modern page within the same folder of a site collection. You can do it manually or programmatically. Follow the below steps to copy a client-side page.

SharePoint-2013-Hosting
How to Copy a page manually?

Go to your site’s Site Pages. Select a page.
Click on “Three dots” to present the right side of a page as shown below. Then click on “Copy to”.

A pop-up will open, select the Folder, then click on “Copy here”.

How to Copy a Modern page programmatically using JavaScript

Follow the below JavaScript code to copy a modern page in the same folder of a site collection.

The original page

The copied Page

We can conclude that this copy feature will help a user copying a page with all the contents present inside the page. Hence, we have done it programmatically to make this easier and more effective.