• Resolved kunal1123

    (@kunal1123)


    Hi, I am using redirect ‘login & back’ on a woocommerce site. However, instead of being redirected to frontend login page, users get redirected to example.com/wp-login.php

    I tried redirect to custom URL example.com/my-account/ but then the user loses the landing page URL and cannot be redirected to the previous page. I would like the login and redirect to work with the frontend login page.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Kim L

    (@kimmyx)

    Hi @kunal1123,

    The option “Login & Back” currently only works for the default WordPress login page.

    As a workaround, you can use the Custom URL option, and then add a code snippet for WooCommerce’s login page.

    Here’s something I found: https://www.businessbloomer.com/woocommerce-login-redirect-previous-url/

    Hope that helps. Let us know if you have more questions.

    Thread Starter kunal1123

    (@kunal1123)

    Hi, I tried this. It does not work. It redirects to the my-account when clicking on content from homepage. After login, it redirects to home page. If user tries to access content URL directly in web browser, it first redirects to the my-account page and after login, stays on my-account page dashboard.

    Plugin Support Kim L

    (@kimmyx)

    Hi @kunal1123,

    The code snippet I shared was not from us, but something I found while looking for a workaround for your scenario, as this is something out of scope of our plugin’s functionality.

    You might need to contact the author of the snippet with regards to how it works.

    Let us know if we can help with anything else.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Login redirecting to wp-login.php’ is closed to new replies.