SharePoint Rest API code not working after saving page

This SharePoint Rest API tutorial explains, how to solve SharePoint Rest API code not working after saving page issue. The issue comes in SharePoint 2013/2016 or SharePoint Online.

When you select page the URL Parameters for Site Pages, in that page you write REST API jquery and after adding in script editor if you save page API does not work after saving because of Minimal Download Strategy Site Features Active.

After adding in script editor Before saving Page:

SharePoint Rest API code not working after saving page
SharePoint 2013 Rest API code not working after saving page

To validate if everything was working correctly, deactivate the MDS Feature and access to a SharePoint Page.

Go to SharePoint site Settings -> Manage Site Features – > Find Minimal Download Strategy Feature – > Click on Deactivate.

SharePoint 2016 Rest API code not working after saving page

After access the SharePoint page you will be able to see the URL change, it’s not calling “_layouts/15/start.aspx#/” but the correct Page “/sitesPages//POCForDropDown.aspx” and the Ribbon Load correctly.

SharePoint online Rest API code not working after saving page

You may like following SharePoint Rest API tutorials:

After this, the Rest API code will work after saving the page.

Donwload Hub site pdf

Download SharePoint Online Tutorial PDF FREE!

Get update on Webinars, video tutorials, training courses etc.

>