• Resolved Mance Creative

    (@mance-creative)


    Hi Steve,

    First I just want to say thank you so much for all of the help you have provided for us over the years with your amazing plugin.

    I have just noticed that on one of our sites the directory listings don’t click through to the correct page/template (which has custom profile styling for the Profile Entry Card 3.0 template), even though I added the correct “home_id” to the Connections shortcode displayed on the directory page, and used the “[…template=”profile”]” override in the shortcode on the profile page.

    For example I noticed the “View Profile” buttons when hovered over, display the correct url/permalink (…/find-a-professional/profile/name/<profile name>/) to click through to. But then when you click on the button the url/permalink changes to “…/find-a-professional/name/<profile name>/” (note the “profile” slug gets removed). So when you click to through the profile it’s using the Directory page template instead of the Profile page template.

    Let me know if this makes sense and if you have any ideas how to fix this.

    Thanks!
    MItch

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Steven

    (@shazahm1hotmailcom)

    I took a look. I see that when you click on the “View Profile” that does resolve to the /profile/name/ permalink as it should.

    But, the server or WordPress is immediately doing a 301 redirect. YOu can view this by opening the page in Chrome or the Edge, hit the F12 key, and then click the Network tab. With this tab open, click the “View Profile” link.

    You’ll notice the request for the /profile/name/ is a 301 redirect.

    Connections can not do redirects. This redirect is caused by something else.

    Things to check:

    – Do you have a plugin installed that does redirects. Examples, Yoast SEO, Rank Math, and Redirection. If you do, review the redirect rules and make sure none exist for /profile/name/.

    – Review the site’s .htaccess file. Check for any redirect rules and ensure one does not exist for the /profile/name/ page. (Note, the plugins above will write their redirect rules to the htaccess file.)

    I hope this helps; please let me know what you learn.

    Thread Starter Mance Creative

    (@mance-creative)

    Hi Steve,

    Perfect. That’s exactly what it was. We have the redirection plugin, and I guess the SEO guys who work on the site, set up redirects for the profile URL’s for whatever reason. So I have disabled those redirects and it works perfectly again.

    Thanks!
    Mitch

    Plugin Author Steven

    (@shazahm1hotmailcom)

    Great to hear this issue is resolved!

    Because you have the directory two pages, essentially, it is possible the SEO team added the redirect to prevent duplicate content notices. Connections better integrate with the core WordPress, Yoast SEO, and Rank Math SEO sitemap feature. The page set as the Directory Homepage will be the only pages included in the sitemap. Others can be registered via code via a filter, but I do not think that applies in your case.

    I hope this helps!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Profile buttons not linking to correct profile template page’ is closed to new replies.