I created a new product under category domain.com/product/alpha
, and when I open domain.com/product/alpha
I can see the product, however when I click the product instead of opening the URL as domain.com/product/alpha/sampleProduct
it opens as domain.com/sampleProduct
.
I googled and found that I need to rewrite the URL in Marketing, but if it's the solution, isn't it odd? shouldn't the product be created under the category because I added it under that category?
Now if I have 200 products, editing each product is gonna take time. Please tell me whats the solution here, or if I did something wrong?
UPDATE:
I added a custom url under search engine optimization, but the new url now becomes domain.com/product/alpha/product/alpha/sampleProduct
rather than domain.com/product/alpha/sampleProduct
.