Redirect to previous page after login

Discussion in 'Installation' started by edusites, Jan 21, 2015.

  1. edusites

    edusites aMember Pro Customer

    Joined:
    Aug 9, 2009
    Messages:
    47
    I would like to rediect users back to the page on which they first selected the login link, how do I do this?
  2. caesar

    caesar aMember Pro Developer Staff Member

    Joined:
    Oct 16, 2009
    Messages:
    1,670
  3. edusites

    edusites aMember Pro Customer

    Joined:
    Aug 9, 2009
    Messages:
    47
    I have changed the link to the amember login page to include ?_amember_redirect_url=backurlhere

    but this doesn't seem to work; after login it just stays on the membership info page.

    I assume 'backurlhere' should be replaced with the url I wish the user to be returned to?

    Should this be the full URL, or a relative one?

    Does it matter what the value for 'Redirect After Login' is set to in amember config?

    thanks
  4. caesar

    caesar aMember Pro Developer Staff Member

    Joined:
    Oct 16, 2009
    Messages:
    1,670
    This parameter has priority against 'Redirect After Login' configuration. Yes, you need to replace 'backurlhere' with any valid url. In case it still does not work please contact us in helpdesk (https://www.amember.com/support) and we will check it.
  5. caesar

    caesar aMember Pro Developer Staff Member

    Joined:
    Oct 16, 2009
    Messages:
    1,670
    I am sorry. It is my mistake. You need to use parameter name amember_redirect_url

Share This Page