[wp-meta] [Making WordPress.org] #5290: Requests containing 'cat=-1' omit canonical (and hreflang) tags

Making WordPress.org noreply at wordpress.org
Thu Jul 2 08:47:14 UTC 2020

#5290: Requests containing 'cat=-1' omit canonical (and hreflang) tags
 Reporter:  jonoaldersonwp  |       Owner:  (none)
     Type:  defect          |      Status:  new
 Priority:  normal          |   Milestone:
Component:  General         |  Resolution:
 Keywords:  seo             |

Comment (by jonoaldersonwp):

 Replying to [comment:2 dd32]:
 > Unfortunately `?cat=-1` is a valid request, as is
 `/tag/tagname/?cat=-1234`, which is just as valid as
 > This is an unfortunate scenario where WordPress's flexibility is
 incredibly hard to handle.
 > The challenge with multi-taxonomy queries like this, is which is the
 canonical? `/tag/tagname/?category_name=catname` or
 > If the QV should just be excluded from the canonicalisation, the further
 question that's raised is "Does what the canonical is actually set to
 matter at all? Should it just be set to the homepage for a multi-taxonomy
 query if one should be ignored?"

 Yeah, this is nuanced and messy. Really, it shouldn't be possible to
 cross-query to the nth degree like that. In an ideal world we'd define all
 of the intersecting meta robots and canonical logic for every variations;
 but we have bigger fish to fry. Just need to make it less-broken for now,
 until we run out of other fires to put out! :)

Ticket URL: <https://meta.trac.wordpress.org/ticket/5290#comment:4>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org

More information about the wp-meta mailing list