1

I'm facing an issue in Magento 2.2.0 and Unero Theme 1.3.2 where there are products that have an URL like:

https://example.com/catalog/product/view/id/440/s/product-url-key/57/

and the others are:

https://example.com/product-url-key.html

I'm checking the condition of SEO setting in the catalog's configuration, but I think it's already correct in the store view level setting.

SEO Store View Configuration

And this is the SEO settings in the catalog -> product itself SEO Product Settings

I'm currently at the beginning state of developing and learn Magento Programming. Do it need code modification in core / theme? Or there are something wrong with the configuration?

Expected result are the second one where there is .html in the product's URL

Thanks.

  • In admin products section you selected catalog,search?? – Mohit Patel Feb 15 at 4:25
  • Thank you for your edit suggestion. Yes, the visibility is catalog, search. Is this affecting the URL's generation? – MBK1People Feb 15 at 5:27
  • I am found some days ago same problem my site and i have changed the visibility. And my issue is solved. – Mohit Patel Feb 15 at 17:29
  • it is possible that some products in the past didn't generate, to regenerate all use github.com/elgentos/regenerate-catalog-urls (this can update product urls as well as catalog). check that new products are created correctly . I had this issue and used a SQL script to check for enabled and visible products correctly appearing in the url_rewites table – Barry Feb 15 at 19:16
  • @Barry does it run in the PHP 7.1 and Magento 2.2.0 ? I've seen the release version just added PHP 7.3 on composer require list. Thank you anyway for your suggestion! – MBK1People Feb 16 at 7:53
0

I've finally found a solution by a fellow developer that this one is working with PHP 7.1 and Magento 2.2.0 : https://github.com/olegkoval/magento2-regenerate_url_rewrites

|improve this answer|||||

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.