Finding URL Source: /collections/vendors?q=VENDOR

I crawled my website and I’m trying to find where this style of URL is being linked from, so I can best deal with them.

I found many /collections/vendors?q=VENDOR URLs in the crawl.

These pages are currently indexable by Google, but I can’t tell where on the site they’re being linked to.

They are different than /collections/VENDOR. I would prefer that any internal links go to this version (collections/VENDOR) of the vendor page, and any instances of the above (?q=VENDOR) be canonicalized or redirected to the latter.

Any ideas?

Hi @msverde ,

It will link to a list of products with the same vendor: VENDOR. Refer https://shopify.github.io/liquid-code-examples/example/vendor-link-list

This link is usually created on a collection or product detail page.

Hope it helps!

Hi , did you find any light on this issue?

Hi,

Just in case anyone else finds this, I found it on my site, 20TwentyStore.com.

Long story short, if you have “Show Vendor” enabled on your product block, the vendor name has to match the text used in the collection url, or you will have this problem.

On your product page, above the product name, you might have your site set to display the vendor name. If there is not a url on your site that exactly matches “collections/vendor”, where vendor is the name above your product name, the code will trigger the vendor?q= version of the url on that link.

As an example, I had a collection called “Transition Bikes” which used the URL collections/transition-bikes. I had the vendor set for these products as “Transition”. Since that’s not a match, the URL the product page linked to was “collections/vendors?q=Transition”.

My solution was to change the collection URL to “collections/transition”. Shopify automatically set up a 301 redirect on the collection page from transition-bikes > transition.

A 301 won’t work on /collections/vendors?q=Transition, but I think it will be better to use a canonical URL anyway. Using a canonical might also be a better option than changing the collection URL for some.