I am having strange trouble in my Magento 2.1.7 website. As per my client's requirement, I changed category URL suffix and product URL suffix to blank.

Issue 1: After making such changes in the settings, I got the following error:

Error filtering template: Element with ID 'widget.products.list.pager' already exists.

Issue 2: After getting above error, I tried to reindex, flush cache and deploy static content, but nothing worked. Then I tried to revert back my changes and set .html as URL suffix again.

Now the setting is being saved in the admin panel but nothing is being changed in the frontend.

I am still getting category and product URLs without .html.

Kindly suggest, how can I get rid of such problem.

Thanks in advance


You can try removing var folder and run the reindex command php bin/magento indexer:reindex

Or you can tryout the URL regenerate: https://github.com/karliuka/m2.IndexerUrlRewrite

  • Already tried removing var folder and ran reindex, but not working. – Mohit Kumar Arora Mar 20 '18 at 9:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.