• Resolved gchokeen

    (@gchokeen)


    Hi, I found plugin is redirecting guest user to home page when try to view the profile (author) page.

    Example profile url : https://example.com/profile/gowri

    I found the redirection happening in FrontendProfileTag.php file

    plugins/wp-user-avatar/src/ShortcodeParser/FrontendProfileTag.php

    hook function: set_up_detected_profile

    if (strpos($_SERVER['REQUEST_URI'], '/' . ppress_get_profile_slug() . '/') !== false) {
                        nocache_headers();
                        wp_safe_redirect(home_url());
                        exit;
                    }

    ppress_get_profile_slug() returns profile
    $_SERVER[‘REQUEST_URI’] returns profile/gowri
    So this condition fails and redirect the user to home page, can you help with this?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Author profile page automatically redirects to home page when user logged in’ is closed to new replies.