Wednesday, March 7, 2012

Simple Redirect Web Part

If you need a quick solution for redirecting users from one SharePoint page to another, here is a very simple solution:

  1. Open your browser to the page of your SharePoint site which you'd like to place the redirect on
  2. Click on Site Actions -> Edit Page
  3. Locate the Bottom Zone and click Add a Web Part
  4. Under Categories, select Media and Content
  5. Under Web Parts, select Content Editor
  6. Click the Add button
  7. Locate the newly added web part and click on the dropdown arrow in the upper right hand corner
  8. Select the Edit Web Part option
  9. Under Layout, place a check in the Hidden checkbox
  10. In the Content Editor web part, click on the link that reads Click here to add new content link
  11. In the Format Text ribbon, click on the HTML button and select Edit HTML Source
  12. In the HTML Source dialog, enter the following HTML:
    <meta http-equiv="refresh" content="0;url=http://TargetSite/TargetPage.aspx">
  13. Click OK
  14. Click OK
When you no longer need the redirect web part, you can remove it from your page as follows:

  1. Open your browser, type in the address to the page of your SharePoint site on which you placed the redirect web part, and append "&contents=1" to it (i.e. http://SourceSite/SourcePage.aspx?contents=1)
  2. Place a check in the checkbox next to the redirect content editor web part you created above
  3. Click Delete to remove the redirect content editor web part

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.