SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Whenever i try to open a site , i want page to redirect to some other page . So , i have added a javascript to redirect using the content editor on my page . Now i want to edit the code added to Content editor . But i am unable to find the page in edit mode because the script run and its being redirected . How can i solve this problem ?

share|improve this question
up vote 2 down vote accepted

You can go to the webpart maintainance page by adding ?contents=1 to the page and delete the webpart and add it again to page

share|improve this answer
this will work the best and easiest . . all other approaches are also working g8 . . thx to all :) – Nikhil Jangle Jan 6 '11 at 5:50

Best practice would be to create the javascript file and upload it to a -Script Library-. Then just reference that file in the Content Editor WebPart, that way you could always just edit the source file.

By default, there is also a redirect page layout type that gets created when publishing is enabled. You may want to take a look at that as well.

share|improve this answer

I agree to Thomson's answer, but give a try in SharePoint Designer too

share|improve this answer

Either Sharepoint designer or if you're using publishing pages, you can just go to the Pages library and edit the content there.

You can also try to disable javascript before going to the page - Not sure how much of the core editing will work though.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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