Viewing 11 replies - 1 through 11 (of 11 total)
  • I am on the same boat, I found SimpleModal to be so nice while testing but can not put it on the production site because of the redirect problem.

    This feature would be nice.

    Version 2.6.0 of the plugin now supports [variable]http_referer[/variable] as a redirect URL in order to redirect the user back to the same page. Please see the note in the changelog (http://wordpress.org/extend/plugins/peters-login-redirect/changelog/) or implement one of the other suggested solutions if you need to support more than the basic use case.

    Hi Peter,
    Tried your suggestion and redirect to same page doesn’t seem to work for me. I suspect I’m missing something.

    Can you give me the exact syntax to put in the URL box for this please?

    Thanks
    Karl

    Hi Karl,

    Exact syntax for the URL box is essentially this:

    [variable]http_referer[/variable]

    Are you having trouble with referrer redirecting only or with any redirects?

    Hi Peter,

    tried that but it goes to 404 for the page /http_referer

    This is the only thing I need to resolve, not tested the plugin trying to do anything else.

    The only possible causes that come to mind on that are either: your version of the plugin is older than 2.6.0 (in which case be sure to upgrade!); or that you need to include the opening and closing “[variable]” tags.

    hi peter,

    sorry if this is dense, but are you saying to paste literally [variable]http_referer[/variable] into the URL box?

    or are we supposed to substitute something arbitrary where it says “variable”?

    when i tried pasting the exact string above and then clicked the update button, the plugin gave me the alert “Successfully updated URL for “all other users””, but the string in the URL box changed to variablehttp_referer/variable – note lack of brackets, and the redirect went to a 404.

    i went into the db directly and changed the string in there to [variable]http_referer[/variable] and then it kind of worked.

    logout is working perfectly, leaving me logged out on the same page where i clicked the logout link.

    login is still not working for me even with the fixed URL string. no matter what page i login from, it tries to redirect to me to http://mysite/wordpress/ which is a 404.

    i think it might be because my admin and my login form are on a different subdomain (accessed via SSL) than the referer page and i am also using another plugin, “wordpress HTTPS” to manage those redirects.

    fixed my final issue above by turning on the option in the redirect plugin to “Allow a POST or GET “redirect_to” variable to take redirect precedence” and then re-writing the code that generates my login link to look like:

    <a title="Login" href="'. wp_login_url($_SERVER["REQUEST_URI"]) .'">Login</a></li></ul>';

    SO… the only thing left unsolved in my posts in this thread is why the plugin would not save the [variable]http_referer[/variable] string with the brackets when i tried to do that and i had to go into the db directly to save that string.

    Thanks for the updates. Try setting “Redirect restrictions” to “Any http or https URL”

    yup, thanks. had that setting.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘[Plugin: Peter's Login Redirect] Feature Request – Redirect to Current Page’ is closed to new replies.