I cannot get Magento 2 to renew URL rewrites for categories. I was forced to clear url_rewrites
table after some weird problems happened after importing categories and products.
Now I get something like catalog/category/view/s/regntoj/id/304/
.
I have tried the following
- Save the category manually (doesn't work)
- Change URL key and/or "content" and save the category manually (doesn't work)
- "Marketing" > "URL rewrites" and add a rewrite rule (works)
I have more than 200 categories so going to Marketing > URL rewrites and manually setup each category will take a long time.