Redirecting to home page after login rather than my account

Solved4 replies3 participantsUpdated by Tony Rodriguez

  • Avatar: islam
    islam
    Participant

    Hi,

    After login in from home page, I’m redirected to my account page, and I want to stay on home page instead. So I just want to make sure whether you are responsible for this redirection (xstore code) or it is something related to woocommerce and i’d need a plugin to change it.

    Please, contact administrator
    for this information.

    4 Answers

    Avatar: Jack Richardson
    Jack Richardson
    Support staff

    Hello @islam,

    Occasionally, redirections may occur when additional plugins are installed on your website, potentially blocking the correct login action from one time login on current page url. We attempted to force disable our built-in redirection on your staging website by adding the following code to your child-theme/functions.php:

    add_filter('etheme_woocommerce_origin_login_redirect', '__return_true', 99999);
    add_filter('etheme_woocommerce_origin_registration_redirect', '__return_true', 999999);

    However, this did not have any effect on the outcome. Therefore, we recommend reviewing the installed plugins and disabling them one by one to identify the one causing the issue. Additionally, please check your hosting configuration, as there may be logs or URL parameters related to redirections.

    Best Regards,
    Jack Richardson
    The 8Theme’s Team

    Avatar: islam
    islam
    Participant

    alright thanks Jack.

    Avatar: islam
    islam
    Participant

    Thanks for the support! My topic “Redirecting to home page after login rather than my account” has been successfully resolved.

    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff

    Dear islam,

    It’s great having you in our WordPress & WooCommerce community!

    Every insight you share helps us refine XStore and build tools that empower thousands of online store owners worldwide.

    Together, we grow stronger with every release.

    Topic closed.
    The 8Theme Team

The issue related to '‘Redirecting to home page after login rather than my account’' has been successfully resolved, and the topic is now closed for further responses