Viewing 15 replies - 1 through 15 (of 19 total)
  • have u tried “[login redirect_page=’/edit-profile/’]” ?

    Thread Starter ranasaur

    (@ranasaur)

    Thanks Shiro-san

    Ok we’re getting closer…I just tried your suggestion and it worked, BUT i think it might have been a coincidence. I’ve just done some testing.

    It seems as though it performs the redirect once the user is already logged in…
    SO….please try this:

    log on to: https://www.champsummit.com
    username: Deleted
    When you hit the submit button, it will reload the homepage with a hash after the URL.
    Try logging in again (doesn’t make a difference if you reload the page without the hash symbol) and it will redirect you to the edit-page page
    To logout, manually enter https://champsummit.com/logout/ into the browser
    If you try to log in again, it will do the same thing.
    If you continually keep ‘logging in’ via the homepage, once already logged in, it will always redirect to the edit-profile page
    Please let me know your thoughts ??

    Thread Starter ranasaur

    (@ranasaur)

    On the other domain that I’m using as a testing playground, samtranz.co.uk the redirect feature works as expected, regardless of being previously logged in or not.

    Log on to: https://www.samtranz.co.uk/
    Username Deleted and password as deleted also.
    It should redirect to the edit-profile page
    To log out, enter this into your browser: https://www.samtranz.co.uk/logout/

    Hmm..spooky.

    even the log out needs a redirect

    Thread Starter ranasaur

    (@ranasaur)

    Ahhh yes, this is true. For what it’s worth, on the logout pages, I haven’t added a redirect on there just yet. More concerned about the redirect after logging in for the moment.

    Plugin Author Rustaurius

    (@rustaurius)

    Hi ranasaur,

    Can you double check that you’re using single quotes (‘) for the attribute tag? Usually when the page just reloads on submit it’s because the attribute isn’t being read correctly.

    Thread Starter ranasaur

    (@ranasaur)

    Hi Rustaurius,

    I just tried:
    [login ‘redirect_page=/edit-profile/’]
    and
    [login ‘redirect_page’=’/edit-profile/’]

    But sadly, neither of those have made a difference for me…is there anything else that you’d be able to suggest?

    are u shure? [login redirect_page=’edit-profile’];

    and for php: echo do_shortcode(“[login redirect_page=’edit-profile’]”);

    Thread Starter ranasaur

    (@ranasaur)

    Yeah I just tried [login redirect_page=’edit-profile’]; << and that didn’t work.

    Hmmm…..do you think there could be a bug?

    [IMG]https://i6.photobucket.com/albums/y239/Ranasaur/Screen%20Shot%202015-11-19%20at%2011.59.52_zpsqlhsc4kl.png[/IMG]

    Thread Starter ranasaur

    (@ranasaur)

    Try to see where it redirects in the link, and also see if the page u redirect it to has “that name”(Permalink) and try again with [login redirect_page=’edit-profile’]; and also with [login redirect_page=’https://www.ursite.com/edit-profile’%5D;

    Thread Starter ranasaur

    (@ranasaur)

    Hi Shiro-san, the page path is:
    https://champsummit.com/edit-profile/

    At the moment, when i try to log in, it just refreshes the log in page (the homepage in this instance) but with an # after the domain name. It only redirects if you’re already logged in.

    I just tried it now with the absolute page path but sadly that did not work either ??
    [login redirect_page=’https://champsummit.com/edit-profile/’%5D;

    Made some tests, i have no problem with the redirect, but i do know there are some problems with the code, it’s how ur site is made and the priority of the code, i have similar problems but with something else, try to test on a different theme to compare and see if it actualy works or not

    Thread Starter ranasaur

    (@ranasaur)

    Hi Shiro San,

    I’m really stumped now….I can’t work out why this wont work.

    Can you please provide me with the definitive line of code that you feel should work 100%?

    In terms of priority of the code…is there anything that you can suggest there also?

    Plugin Author Rustaurius

    (@rustaurius)

    Hi Rana,

    It should definitely be an absolutely link. Are you calling the shortcode via PHP or from the text editor? From PHP it would be:

    echo do_shortcode("[login redirect_page='https://champsummit.com/edit-profile/']");

    in the text editor:

    [login redirect_page='https://champsummit.com/edit-profile/']

    If you check your error log, are there any errors showing up? Like shiro san said, for the redirect to work no text can be sent to the browser before the redirect call happens. The plugin buffers output before the redirect call to block output, but if something is clearing an extra buffer, then the content would be sent early.

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘Not redirecting after logging in’ is closed to new replies.