amember_redirect_url only passing one variable

Discussion in 'Troubleshooting' started by iraqoilreport, May 24, 2010.

  1. iraqoilreport

    iraqoilreport New Member

    Joined:
    Aug 24, 2009
    Messages:
    12
    I'm trying to pass multiple variables in a amember_redirect_url but it only passes the first.

    Example:
    /subscriber/login.php?amember_redirect_url=/subscriber/member.php?action=renew&paysys_id=linkpoint&product_id=6&coupon=B2B0D6

    ...which only redirects me to /subscriber/member.php?action=renew.

    Any idea why it's doing this?
  2. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
    /subscriber/login.php?amember_redirect_url=/subscriber/member.php?action=renew&paysys_id=linkpoint&produc t_id=6&coupon=B2B0D6

    Its thinking this is your info
    amember_redirect_url=/subscriber/member.php?action=renew
    &paysys_id=linkpoint
    &coupon=B2B0D6

    I think you need to create another page that redirects to
    /subscriber/member.php?action=renew&paysys_id=linkpoint&produc t_id=6&coupon=B2B0D6

    So your user would be /subscriber/login.php?amember_redirect_url=/order.php
    and order.php would redirect again.

    David
  3. miso

    miso aMember Pro Customer

    Joined:
    Aug 22, 2006
    Messages:
    543
    Use '%26' instead of '&' as a separator in the variables passed to amember_redirect_url... ;)
  4. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
    Forgot about that! thanks Miso!

    David

Share This Page