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 ?
Tell me more
×
SharePoint Stack Exchange is a question and answer site for
SharePoint enthusiasts. It's 100% free, no registration required.
|
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 |
|||
|
|
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. |
|||
|
|
|
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. |
|||
|
|