Pass a redirect URL to login form

Discussion in 'aMember Pro v.4' started by igpman, Feb 3, 2012.

  1. igpman

    igpman aMember Pro Customer

    Joined:
    Mar 17, 2010
    Messages:
    72
    I'm redirecting the user to the login form using php header functions. In aMember v3 I used to be able to add a redirect URL to the query and this would mean when the user logs in they are taken back to that URL.

    This query stopped working with aMember v4, and it seems to be set as a form element. How can I specify a URL to redirect to after login, when I am redirecting the user to the login page?
  2. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    The same functionality should work for sure:
    /amember/login/?amember_redirect_url=/url/here
  3. emilybon

    emilybon New Member

    Joined:
    Mar 1, 2010
    Messages:
    28
    Can this be used to send people to product page after purchasing, instead of to membership page?

    For instance, I will be using Google Conversion Optimization. The customer will go to a sales page, click on the "buy now" button which will have this signup/index/c/wBseeAxPnS/?amember_redirect_url=product-url.com.

    When they finish the payment will they be redirected to the product page?
  4. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    No, this will not work.
    But seems we have to implement Product Redirect After Purchase URL setting and it will be added to next version.
  5. emilybon

    emilybon New Member

    Joined:
    Mar 1, 2010
    Messages:
    28
    Thanks Alex

Share This Page