I have a requirement to place a button on a page. While clicking the button it will take the user to the the new site page creation page in edit mode where user will directly update the contents inside the page.

The functionality should be implemented through out of the box feature.

I need the default generic URL of that. I can see if we manually try to click on 'New > Site Page' from inside the Site Pages library, it redirects us to below URL, where the .ASPX page name is dynamic and always changes each time we try to create a new site page.


Please help me on this.

Thanks in advance.

1 Answer 1


You can use URL in below format for your button:


It should create a new modern site page in Site Pages library for your SharePoint site.

I just tested this in our SharePoint Online site and it worked for me:

enter image description here

  • Thanks Ganesh. I got that. One quick question on top of it. Can we pass any query string on that URL to directly set some properties value , meaning for example while redirecting the user to above URL I want the category field/property set to xyz value. once the page published automatically the property gets set. Jan 19 at 16:07
  • Unfortunately, No. Jan 19 at 16:43
  • Please accept my above response as an Answer as it helped you & it will help others with similar question in future to find the correct answer easily. Thank you! Jan 19 at 16:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.