How to Solve Rest API Not Working Issue After Saving Page in SharePoint

Introduction and Issue

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

After adding in script editor Before saving Page



Proposed Solution


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

To access the feature go to Site Settings then Manage Site Features then find the Minimal Download Strategy Feature then click on Deactivate.



After accessing 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 loads correctly.