Thursday 25 June 2015

Redirection To Site Using Query

             Navigation to other page/site Using Content Editor


Hi Everyone,



                  We came through some situations at where we need to Navigate the Users to the newly created page or site when they try to access the Old site.

There is an easy way to do it using the query. All you need to do it just follow the steps and get it done...

  1. Open the source site or open the page that you want to navigate.
  2. Edit the page.
  3. Add a content editor web part on the top og the page.
  4. Change the appearance Content Editor to "Redirect to ######"
  5. Make the Chrome type "None"
  6. Make the web part "Hidden"
  7. Click on "Apply" button.
  8. Now add the following query into the "Source Editor" button.
Query:  <script type="text/javascript">
             window.location.href = "TargetURL";
             </script>




      Once we done this, whenever any user goes to the page, they will be navigated to the Target URL.


Note: At any point of time If you want to stop this redirection just add "?CONTENTS=1" in the end of the source URL.

  • All the contents of the page will be available.
  • Select the particular web part.
  • Delete the web part and it stops the navigation.


I hope this helps in a better way!


Learn it Love it Lead it !!!

To learn more just like our page in facebook Sharepoint Dev