• Resolved bvlich

    (@bvlich)


    After login, how do you redirect to the desired link if you have a page that is only accessible to members?

    It seems you can specify a page after login in the setup, but this is not very useful it you are trying to protect a post. You would want to redirect the member to the target post after login.

    Any help would be appreciated.

    https://ww.wp.xz.cn/plugins/ultimate-member/

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Author Ultimate Member

    (@ultimatemember)

    Hi bvilch,

    I am trying to understand what settings have you put / and what are you trying to achieve, and I’ll be happy to help you, here’s how I understand it.

    1. You edited a post, made it accessible to members only, and set redirect page to login.

    2. You want the user to go back to protected post after login?

    Thank you!

    Thread Starter bvlich

    (@bvlich)

    Correct, how do you do back the the desired page or post after login. Typically there would be some sort of query string with the login URL.

    Plugin Author Ultimate Member

    (@ultimatemember)

    Thanks bvilch for getting back to me.

    Although it is not yet documented or in the FAQs you can pass a redirect_to along with login page, after login user will be redirected to that URL.

    Example:

    Instead of making your redirect page: http://yourdomain.com/login/
    Make it: http://yourdomain.com/login/?redirect_to=DESIRED_URL

    DESIRED_URL is your protected post/page. After login, user will go back to the protected post as you want.

    So basically, in the access settings of post, add the post URL (protected post) ?redirect_to=HERE… to the login URL

    Please test and let me know if it works!

    Many thanks.

    Thread Starter bvlich

    (@bvlich)

    This works, but I really think this should be the default action.

    One problem with this method is that it forces to login again even if you are already logged it.

    I appreciate the help.

    Plugin Author Ultimate Member

    (@ultimatemember)

    We’ll see what can be done about automatically making redirect if the redirect url is a login page.

    Glad that this works for you now!

    Many thanks!

    Thread Starter bvlich

    (@bvlich)

    Any update on the redirect?

    Most protection system would allow you to restrict a page.

    1. If the page is restricted, you are directed to the login page.
    2. After you login, you are directed to the original destination URL.

    Everything is really great with you application, but this one thing seems odd. Basically you have to login first and then find what you are looking for. I am using it for our community website at mcgregorisles.com. If I share a protected link on our Facebook Group, they click on the link and then are directed to the main page. They can’t find what they were orignally looking for. I hope I am explaing this correctly.

    Thanks!

    Plugin Author Ultimate Member

    (@ultimatemember)

    Hi bvlich,
    I’m working on something and It’ll be available in the next update for you to test.

    e.g. adding the protected post automatically to the login page after reaching a protected area.

    Many apologies for the delay, we’re spending lot of time with support and fixes.

    Plugin Author Ultimate Member

    (@ultimatemember)

    Ok I’ve coded something that’ll work for you.

    1. I go to post, make it accessible by logged-in users.

    2. The guest will be redirected to the protected page automatically after login. (Login page is default page if user can’t see the content) and sends them back to protected page after success.

    That works for you?

    The update will be released today

    Thread Starter bvlich

    (@bvlich)

    Thank you sounds great!

    Plugin Author Ultimate Member

    (@ultimatemember)

    You’re welcome!

    Thread Starter bvlich

    (@bvlich)

    Seems to work nicely as far as I can tell. Please let me know if you may need any investors in the future.

    Plugin Author Ultimate Member

    (@ultimatemember)

    Thank you! I am happy that you can use our plugin now.

    Do you want to add any other suggestions?

    Thread Starter bvlich

    (@bvlich)

    I can tell you I would be very willing to pay for a paid membership, subscription option with PayPal and Authorize.net integration. That would be tops on my list and key to monetization of your software.

    Plugin Author Ultimate Member

    (@ultimatemember)

    Thank you! That extension is on the top of our plans already. We hope to make something simple and robust over the coming weeks and months.

Viewing 14 replies - 1 through 14 (of 14 total)

The topic ‘Redirect’ is closed to new replies.