Redirect to another page

Last post 02-09-2010, 9:23 AM by Matthieu Disna. 8 replies.
Sort Posts: Previous Next
  •  08-11-2009, 4:46 PM 13874

    Redirect to another page

    Page redirect is helpful when you want to open an outside page (which is not part of your Wild Apricot website) directly from your menu. Sometimes, organizations might have several websites and they want to add a link to the menu of Wild Apricot site that will take them directly to the other website.

    First, you need to create a new empty page. Next, insert the following script in the meta-tags > Raw Headers section of the page: (see meta tags section of page management)

    <script type="text/javascript">
    try
    {
    if (!top.adminpanel)
    {
    window.location = "http://www.redirect.site";
    }
    }
    catch(e) {}
    </script>

    Change http://www.redirect.site to the url of the page you want to re-direct to.


    Matthieu Disna
    Poetic Apricot
    Filed under: ,
  •  09-29-2009, 3:44 PM 14463 in reply to 13874

    • wchester is not online. Last active: 11-05-2009, 1:50 AM wchester
    • Top 25 Contributor
    • Joined on 01-17-2009
    • Posts 66

    Re: Redirect to another page

    I copied some instructions and code from a previous post here and it is a little different than above.  Can you tell me what the difference is between the two and when I should use which?  Here is the previous code.

    First, you need to create a new empty page. Next, go to edit mode, click on script button <S> and enter the following JavaScript code:

    <script type="text/javascript">
      try {
        if (!top.adminpanel) {
          window.location = "http://redirect to url";
        }
      }
      catch(e) {}
    </script>
    <noscript>
      <meta http-equiv="Refresh" content="0; URL=http://redirect to url">
    </noscript>

    Change http://redirect to url to the url of the page you want to re-direct to.

  •  09-30-2009, 10:19 AM 14467 in reply to 14463

    Re: Redirect to another page

    They both will work the same way, however code in the Raw Headers is executed far before the the HTML in the body of the page is. So the code in the first post will redirect the page faster.

    Matthieu Disna
    Poetic Apricot
  •  10-01-2009, 12:41 AM 14474 in reply to 14467

    • wchester is not online. Last active: 11-05-2009, 1:50 AM wchester
    • Top 25 Contributor
    • Joined on 01-17-2009
    • Posts 66

    Re: Redirect to another page

    Thanks Matthieu.  As always, quick and informative responses.
  •  10-12-2009, 7:33 PM 14635 in reply to 14467

    • savvy1 is not online. Last active: 03-10-2010, 12:16 PM savvy1
    • Top 75 Contributor
    • Joined on 06-20-2009
    • Posts 17

    Re: Redirect to another page- dead link

    Hello Matthieu,

    We have a slightly different version of same issue.  Client wants a few of the top level menu buttons to have no link... which forces user to select one of the drop-downs under it. We can easily do this with a normal site. 

    Can we put some code on those pages, such that the top level nav button shows, but clicking it will cause no action or redirect at all?  Thanks.

     

     

     

  •  10-14-2009, 9:50 AM 14679 in reply to 14635

    Re: Redirect to another page- dead link

    Hi,

    The easiest thing to do would be to redirect to the first subpage. It may be possible to stop the first level item from linking using JavaScript though it would be a bit complex. Our partners would be able to help you with that: http://help.wildapricot.com/display/DOC/Partner+directory
    Matthieu Disna
    Poetic Apricot
  •  12-21-2009, 10:44 AM 15667 in reply to 14635

    Re: Redirect to another page- dead link

    savvy1,

    If you are still looking to accomplish this, please send me an email at support@wildapricot.com.


    Matthieu Disna
    Poetic Apricot
  •  02-08-2010, 1:39 PM 16804 in reply to 15667

    • tanag is not online. Last active: 02-08-2010, 3:09 PM tanag
    • Top 500 Contributor
    • Joined on 02-04-2010
    • Posts 4

    Re: Redirect to another page

    I'm still not understanding this.

    i just want to be able to dictate what page my members land on after they login.

    i created a login page, and then i want them to go to the members home i created.

    i'm not understanding the 'create an empty page' thing and the script stuff that has been posted seems to apply to external links.

    help!

     

  •  02-09-2010, 9:23 AM 16812 in reply to 16804

    Re: Redirect to another page

    At the moment it isn't possible to change which page members are redirected to after they log in, This is on our wishlist however and you can vote on it here: http://www.wildapricot.com/forums/thread/11078.aspx

    Matthieu Disna
    Poetic Apricot
View as RSS news feed in XML