• Resolved E-Support

    (@xxlescort)


    Dear support,
    Wen Use your filter
    yoast_seo_robots_remove_search

    to index search results (in our case its positive thing)

    it works, but the wordpress search url domain.com/?s=KEYWORD
    dont have a Canonical header

    i think this filter must do this.. can you tell me please how i can set a Canonical to the search results?

    best regards

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

    (@maybellyne)

    Hello @xxlescort

    Thanks for reaching out about your canonical URL. The yoast_seo_robots_remove_search filter changes meta robots.

    domain.com/?s=KEYWORD is an example of an internal search page and this, by default, is set to noindex by the Yoast SEO plugin. You can read more here.

    So when a page is set to noindex, it will not have the canonical tag you expect it to have.

    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 E-Support

    (@xxlescort)

    `Hello. I don’t think the answer fits my question. My goal is to have domain.com/?s=KEYWORD in the index of google. For this I use the filter yoast_seo_robots_remove_search. If I now check domain.com/?s=KEYWORD, I no longer find a noindex tag.
    However, the URL does not have a canonical . Yoast sets a canonical tag on all pages that do not have a no index. If I use the filter then domain.com/?s=KEYWORD has no noindex anymore. So it does need a canonical tag. How do I make domain.com/?s=KEYWORD a normal page?

    • This reply was modified 2 years, 1 month ago by E-Support.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘missing Canonical with yoast filter remove search’ is closed to new replies.