Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
In my Magento 2 store whenever I click on a product in a category page I get routes to the parent category page instead of going to the product page. Is this a url rewrite issue? Duplicates?
select * from url_rewrite;
select * from catalog_url_rewrite_product_category;
I discovered the issue. There were old 301 redirects in the htaccess file that conflicted with what the system rewrites were doing.
Required, but never shown