ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

redirect to page before login page

April 02, 2009 1:20pm

Subscribe [2]
  • #1 / Apr 02, 2009 1:20pm

    Eastwood Design

    605 posts

    I presume this is very simple.  I have a template with a login form called login.

    Say someone is on page A and clicks a link to go to login (page B), how do I redirect them back to Page A after login?

    Same would be if they were on Page C click to login on Page B redirect to page C

    I have tried Redirect After Login (Twomile) extension but it only seems to redirect to the login page after login, I want it to go back to the page before they were on the login page.

    P.

    EDIT:
    Seems that this may work
    change:

    {exp:member:login_form return="site/index"}

    to this:

    {exp:member:login_form}
  • #2 / Dec 22, 2012 3:01pm

    design132

    101 posts

    Sorry, the above works ... just remove the return parameter

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases