• Resolved flowinteractiveoz

    (@flowinteractiveoz)


    Need help trying to understand why a page with a querystring parameter has no canonical tag at all. My understanding is it should be a canonical to the page without the querystring parameter.

    If the page is loaded without the querystring it shows the canonical link entered in the plugin settings for that page.

    Anyone have any idea why there is no canonical tag at all? Am I missing something here or need to implement something to get the canonical to display with the querystring parameter present?

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Maybellyne

    (@maybellyne)

    Hello @flowinteractiveoz

    Thanks for reaching out about your canonical URL. I can confirm that the canonical URL tag is missing for pages with query string such as https://www.cruiseguru.com.au/last-minute-cruises/?depart=Brisbane and
    https://www.cruiseguru.com.au/last-minute-cruises/?depart=Sydney

    You’ve customized the meta robots tag and added conflicting directives (noindex vs index):

    <meta name="robots" content="noindex">
    <meta name='robots' content='index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1' />

    Pages which have a meta robots tag (or x-robots-tag HTTP header) with a?noindex?directive set would omit the canonical URL tag entirely. Once you take care of the noindex tag, the canonical tag will be present.<meta name=”robots” content=”noindex”></meta><meta name=”robots” content=”index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1″></meta>

    Plugin Support Maybellyne

    (@maybellyne)

    This thread was marked resolved due to a lack of activity, but you’re always welcome to re-open the topic. Please read this post before opening a new request.

    Thread Starter flowinteractiveoz

    (@flowinteractiveoz)

    Thanks for your reply, I did not get a notification so missed that this had been responded to so apologies for that.

    On reviewing the code I have removed the additional noindex tag that was added but unfortunately the canonical tag is still not being added for the page with the querystring present.

    Could you please advise why this might be the case?

    Thanks

    Thread Starter flowinteractiveoz

    (@flowinteractiveoz)

    Hello just following up on this request if you could please take a look thank you

    Plugin Support Maybellyne

    (@maybellyne)

    Thanks for following up, @flowinteractiveoz.

    First, can you update to Yoast SEO 20.8? When there’s no noindex tag on a page, I’d expect there to be a canonical tag output: <link rel="canonical" href="

    Often, we see problems occur in combination with another plugin or theme. The fastest way to rule out any conflict is to deactivate all non-Yoast plugins and switch to a standard theme like Twenty Twenty-Two.

    Please test this on your development or staging site if you have one. If not, we recommend using the Health Check & Troubleshooting plugin. This plugin has a troubleshooting mode, which does not affect normal visitors to your site.

    If you’re unfamiliar with checking for conflicts, we’d like to point you to a step-by-step guide that will walk you through the process: How to check for plugin conflicts

    Plugin Support Jose Varghese

    (@josevarghese)

    This thread was marked resolved due to a lack of activity, but you’re always welcome to re-open the topic. Please read this post before opening a new request.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Canonical tag missing on page with query string’ is closed to new replies.