I use Magento 2.2.4 version, if I open a subcategories my URL have .html suffix in both: category and subcategory.
The url is look like this:
and the product
How I can made the url for categories to be like this:
and the same for product, to remove the html suffix from url too:
My Catalog SEO configuration is:
If I try to remove the Catalog URL Suffix I have the following error:
Unique constraint violation found