• Resolved rwhitten

    (@rwhitten)


    I’m trying to redirect to my confirm password reset page but for some reason it picks a different page to redirect to. It happens even if I don’t put a page to redirect to in the shortcode. The page it redirects to happens to be the next page alphabetically so I tried renaming my confirm page to come alphabetically after the reset page but it didn’t change the behavior.

    [forgot-password reset_email_url=’https://www.example.com/employee-password-reset’ reveal_no_username=’Yes’]

    • This topic was modified 5 years, 6 months ago by rwhitten.
Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter rwhitten

    (@rwhitten)

    Ok I figured out what is causing it to redirect to the wrong page. I have a login/logout toggle in the footer of my page and it is redirecting to whatever I put in for login redirect page. Can you look into why this overrides the shortcode reset_email_url attribute.

    Plugin Contributor etoilewebdesign

    (@etoilewebdesign)

    Hi @rwhitten,

    My apologies for the late reply. Thank you for that information. I will try to recreate this on my end and get back to you.

    Thread Starter rwhitten

    (@rwhitten)

    Hi @etoilewebdesign,

    Were you able to recreate the situation I’m seeing with the redirection of the pages?

    Plugin Contributor etoilewebdesign

    (@etoilewebdesign)

    Hi rwhitten,

    We should’ve mentioned this in our first response, but I think we misunderstood what your issue was. You can’t have two different shortcodes or widgets, etc. that have redirects on the same page. They will conflict. You’ll have to remove the widget from the page on which you have the other shortcode.

    Also, for the reset_email_url, you can just use a relative URL, and not the full path. So, for example: reset_email_url=’employee-password-reset’

    Thread Starter rwhitten

    (@rwhitten)

    Hi @etoilewebdesign,

    I guess I don’t understand how the toggle is useful then. I was trying to avoid creating logins for each page and I wanted a universal login/logout. Something that would be consistent to the whole site like in a footer or a menu. One shortcode redirects when you click the login button in the footer and the other when you click the Reset password button on the page and they use different redirect attributes so it seems like I could use the widget and shortcode without any conflict since the submission buttons are different.

    Is there a different approach to handling this type of login situation? Is there a login toggle shortcode instead of a widget?

    Plugin Contributor etoilewebdesign

    (@etoilewebdesign)

    I would say that you can continue to do it exactly the way you were. Most themes offer different page templates. Just choose a full-width template (with no sidebar, and, as such, no widgets) for the page on which you place the forgot password shortcodes.

    Thread Starter rwhitten

    (@rwhitten)

    Hi @etoilewebdesign

    I had issues with the theme I’m using and turning off the footer for different pages but got a work around using the sidebars instead. I was still having issues with it not redirecting using reset_email_url=’employee-password-reset’. I would get the message “For completing the password reset procedure, please follow the instructions in your email.” after clicking reset password and it would stay on the current page. So I changed it to redirect_page=’employee-password-reset’ instead and that seems to work. Is that the correct attribute?

    Plugin Contributor etoilewebdesign

    (@etoilewebdesign)

    Hi @rwhitten,

    The reset_email_url attribute is for the confirm password reset page link that is sent in the email to the user.

    The redirect_page attribute is for redirecting the user after a successful submission.

    So if you use the forgot-password shortcode, without a reset_email_url, there will be no URL pointing to your reset password page in the email received.

    Thread Starter rwhitten

    (@rwhitten)

    Ok thanks for the clarification

    Plugin Contributor etoilewebdesign

    (@etoilewebdesign)

    Hello @rwhitten,

    Was there anything else that you needed help with?

    Thread Starter rwhitten

    (@rwhitten)

    Hi @etoilewebdesign

    Not with the the redirection but I’m having an issue with restricted content not showing after you login. If I’m logged into the websites backend everything works fine but when I went live with the changes I started getting complaints about login issues. Sometimes it would let someone login but then everyone that went to website would see that first person’s login name and info and would not be prompted to login. Others would login and the page would refresh but the restricted content would not display.

    Plugin Contributor etoilewebdesign

    (@etoilewebdesign)

    Hello @rwhitten,

    Are you able to email us a link to your webpage, along with a dummy user we can use to see what’s going on?

    You can email us at [email protected], please refer to this thread in the email.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Forgot Password Redirect’ is closed to new replies.