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.

8
  • In admin products section you selected catalog,search?? Commented Feb 15, 2020 at 4:25
  • Thank you for your edit suggestion. Yes, the visibility is catalog, search. Is this affecting the URL's generation?
    – Marbonka
    Commented Feb 15, 2020 at 5:27
  • I am found some days ago same problem my site and i have changed the visibility. And my issue is solved. Commented Feb 15, 2020 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
    Commented Feb 15, 2020 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!
    – Marbonka
    Commented Feb 16, 2020 at 7:53

1 Answer 1

1

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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