I have added the following java script:

window.location = "http://www.yoururl.com";

Now I cannot edit the same page, since it keeps redirecting.

Is there away of removing it or stopping it for me to be able to edit the page?


Add "?Contents=1" to your site URL to open the Maintenance page

  • Select your script / content editor
  • click close or delete.

Now you can edit your page.

enter image description here

  • hahh yess :) it works! shame there is no open to edit the current webpart. Thanks for your quick reply. – Bucki Nov 24 '16 at 15:04
  • 1
    you can edit your current web part by clicking close rather than delete. then click add a web part / below category select closed web part , you can find your web part add it , and edit it :) tell me result :) – Mohamed El-Qassas MVP Nov 24 '16 at 15:06
  • 1
    I will click Answered once the seconds have elapsed :) and that "close" and read the app > does not do the trick cos as soon as I add the closed app, it refreshes the site and the redirect kicks back in. ah well – Bucki Nov 24 '16 at 15:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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