Hello,
On my site, there are about a dozen near-duplicate “Collections” pages following two similar-but-distinct URL paths that are not canonicalized. Both were generated automatically by Shopify.
This does not present any UX problems as the content is near-identical, but does present SEO problems, because the site nav links to (for example) /collections/shirts while product pages contain anchors such as “Products Tagged Shirts” that link to /collections/all/shirts.
/collections/shirts available through the site nav is the preferred page for viewing each collection and has some custom copy. /collections/all/shirts contains the same product collection index but without any customized copy added.
It is a complete non-issue aside from SEO indexing purposes so I would prefer to simply create rel=canonicals. I do not think there’s a native method to create wildcard canonicals.
If wildcard were possible:
/collections would be self-canonical
/collections/all would be self-canonical
/collections/all/* would canonicalize to /collections*
But some of the “Tags” that auto-generated /collections/all/name pages do not match the nav URL path anyway, so I still need a way to manually canonicalize.
Let’s say I need to do this
/collections self-canonical
/collections/all self-canonical
/collections/all/shirts to /collections/shirts
/collections/all/blouses to /collections/womens-shirts
/collections/all/pants to /collections/pants
etc.
I can only find documentation on managing product canonicals, not for collections, and not for these auto-generated collections that exist because of tags.
Alternatively if there were a way to simply change the TAGGED AS anchor target URL to match the nav URL, that would work, but it seems likely to be more complicated. And I prefer not to use 301s as it’s not a good practice to use 301s for internal links.
Thanks and appreciate any help. Let me know if any of this needs clarifying.

