Permlink issue when products stored in multiple categories
-
I am using WP 5.9 and woocommerce 4.8
A single product can be assigned to multiple categories.
On the shop category page, the products that are assigned to that category are listed correctly.
But I seem to have a problem with the permalinks. The URL to the product details page uses the shop base and the product_cat – as instructed in the permalinks settings page.cat1 – subcat1 – productA
cat2 – subcat2 – productAon the category pages, which display the results, the link to productA seems to be arbitrary – or at least it changes from one category to another.
So the Permalink for ProductA could be shown as https://domain.org/shop-base/cat1/subcat1/productA –
OR it could be shown as
https://domain.org/shop-base/cat2/subcat2/productAIf I hover over the listed products, some products show the target URL with cat1->subcat1 and some with cat2->subcat2 – what is the logic here? Surely the permalinks should show the current category path – so visiting cat1->subcat1 product listing page should retain cat1-subcat1 structure in the URL’s??
Any advice or pointers to other topics on here gratefully received.
thanksBoth point to the correct product, but the if the user has selected Cat1, then the link can take user to Cat2
- The topic ‘Permlink issue when products stored in multiple categories’ is closed to new replies.