I'm working with a catalog in M2 that has been somehow migrated (don't know how). It has url_path migrated and has the form of url_key + html. This is causing the URL rewrites to create URLs that end with http://example.com/.../.html.html.

Looking a the DB and code, it looks like it's for bundle or configurable products but still unclear what it is for. Removing them from simple and configurable products don't seem to have any affects.

Any ideas if url_path data is need for anything?

  • In the M2 sample-data product doesn't have any value for url_path. So I think deleting url_path values for a product should not harm. But for categories, it's important as they have hierarchies. – MagePsycho Aug 6 '17 at 12:58
  • I can also confirm the issue if url_path has [url-key].html value then url_rewrites will be full of .html.html value. Seems to be the bug for me. – MagePsycho Aug 6 '17 at 13:14

url_path is deprecated, and could safely delete its data. I tested it in my Magento 2.3.2.

You could see the deprecated statement in the offical github comment and the graphql-ce codes.

url_path: String @deprecated(reason: "Use product's `canonical_url` or url rewrites instead")

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.