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.

Return value in login_form not working

October 30, 2012 9:57am

Subscribe [3]
  • #1 / Oct 30, 2012 9:57am

    I have a login form at the following page:

    site.com/en/downloads

    “en” is the user_language ( and is stored as such in a global var )

    when I login, the form redirects me to:

    site.com/downloads

    While it should redirect me to the URL with my user_language

    I’ve tried numerous things, but the value of the return value always gets ignored.

    return =”{site_url}/{user_language}/downloads”
    return =”{site_url}”
    return =“http://site.com”
    return =“http://google.com”
    return =“about/index”

    they all redirect to site.com/downloads.

    the code that is being outputted ( for the last example ) looks like this:

    <form method="post" action="http://site.com/"  >
    <div class='hiddenFields'>
    <input type="hidden" name="XID" value="9fae3b1b5fcf882776da6638706595af73a7b15d" />
    <input type="hidden" name="ACT" value="7" />
    <input type="hidden" name="RET" value="about/index" />
    <input type="hidden" name="site_id" value="1" />
    </div>


    I have an .htaccess that looks like this:

    RewriteEngine On
    
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /index.php?/$1 [L]

     

  • #2 / Oct 31, 2012 2:09pm

    Shane Eckert

    7174 posts

    Hello Jan,

    I am sorry to hear you are running into this problem.

    What if you take the htaccess file out of the equation for testing?

    Please let me know.

    Cheers,

  • #3 / Nov 05, 2012 3:34am

    Hello Jan,

    I am sorry to hear you are running into this problem.

    What if you take the htaccess file out of the equation for testing?

    Please let me know.

    Cheers,

    doesn’t change a thing.

  • #4 / Nov 05, 2012 4:11am

    I finally figured it out.

    Apparently I was still using a small plugin called “Twomile Login Redirect” which hijacked my login code ( even when it was disabled, I had to remove it )

    So all is well now.

    Lesson learned: remove old plugins 😊

  • #5 / Nov 05, 2012 9:32am

    Jon Horton

    38 posts

    I was just about to ask if you had the Twomile Login Redirect plugin installed.  We had the same issue a few months back.

    Glad you figured it out!

  • #6 / Nov 05, 2012 9:41pm

    Shane Eckert

    7174 posts

    Hey Jan van Lysebettens,

    Thanks for lettings us know about the resolution. That’s awesome.

    If you need anything else, please just let me know by opening a new thread.

    Cheers,

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

ExpressionEngine News!

#eecms, #events, #releases