magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.59k stars 9.32k forks source link

Set Generate "category/product" URL Rewrites to "no" has no effect #38317

Closed arhmart closed 3 months ago

arhmart commented 11 months ago

Preconditions and environment

magento 2.4.7-beta2

Steps to reproduce

  1. Set in Catalog>Search Engine Optimization: a. Set "Use Categories Path for Product URLs" to "NO" b. Set "Generate "category/product" URL Rewrites" to "NO"
  2. Add and save new product.

The url rewrite in the frontend works fine. But under marketing>URL Rewrites, you can see that there are two url rewritten versions, one of is with category.

Expected result

Generate only one url, don't generate the url that with category.

Actual result

Two urls are generated

Additional information

No response

Release note

No response

Triage and priority

m2-assistant[bot] commented 11 months ago

Hi @arhmart. Thank you for your report. To speed up processing of this issue, make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:

m2-assistant[bot] commented 11 months ago

Hi @engcom-Bravo. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:

engcom-Bravo commented 11 months ago

Hi @arhmart,

Thank you for reporting and collaboration.

Verified the issue on Magento 2.4-develop instance and the issue is not reproducible.Kindly refer the screenshots.

Steps to reproduce

Screenshot from 2023-12-28 12-34-47

Screenshot from 2023-12-28 12-28-11

Only one Url is generated and there is no url with category.

Kindly refer this documents https://experienceleague.adobe.com/docs/commerce-admin/config/catalog/catalog.html?lang=en#search-engine-optimization and https://experienceleague.adobe.com/docs/commerce-admin/marketing/seo/meta-data.html?lang=en#canonical-meta-tag for URL rewrites.

Kindly recheck the behaviour on Magento 2.4-develop instance and elaborate steps to reproduce if the issue is still reproducible.

Thanks.

arhmart commented 11 months ago

@magento give me 2.4-develop instance

magento-deployment-service[bot] commented 11 months ago

Hi @arhmart. Thank you for your request. I'm working on Magento instance for you.

magento-deployment-service[bot] commented 11 months ago

Hi @arhmart, here is your Magento Instance: https://b0f15037f9c6f0abb471ef30da96e621.instances-prod.magento-community.engineering Admin access: https://b0f15037f9c6f0abb471ef30da96e621.instances-prod.magento-community.engineering/admin_be10 Login: f5e7219b Password: 2f19c232815e

arhmart commented 11 months ago

I tested it and determined that the problem was reproduced in 2.4-develop. 11

engcom-Bravo commented 11 months ago

@magento give me 2.4-develop instance

magento-deployment-service[bot] commented 11 months ago

Hi @engcom-Bravo. Thank you for your request. I'm working on Magento instance for you.

magento-deployment-service[bot] commented 11 months ago

Hi @engcom-Bravo, here is your Magento Instance: https://b0f15037f9c6f0abb471ef30da96e621.instances-prod.magento-community.engineering Admin access: https://b0f15037f9c6f0abb471ef30da96e621.instances-prod.magento-community.engineering/admin_9391 Login: ba296a67 Password: 32f47e400a91

engcom-Bravo commented 11 months ago

Hi @arhmart,

Thank you for reporting and collaboration.

Verified the issue on Magento 2.4-develop instance and the issue is reproducible.Kindly refer the screenshots.

Steps to reproduce

Screenshot from 2023-12-29 12-07-03

Two URL's were generated.

Hence Confirming the issue.

Thanks.

github-jira-sync-bot commented 11 months ago

:white_check_mark: Jira issue https://jira.corp.adobe.com/browse/AC-10753 is successfully created for this GitHub issue.

m2-assistant[bot] commented 11 months ago

:white_check_mark: Confirmed by @engcom-Bravo. Thank you for verifying the issue.
Issue Available: @engcom-Bravo, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.

sheepfy commented 3 months ago

Fixed here: https://github.com/magento/magento2/pull/39071

engcom-Bravo commented 3 months ago

@sheepfy Thanks for your contribution.

Hi @arhmart,

Similar issue has been confirmed here https://github.com/magento/magento2/issues/39070.

Hence we are closing this as duplicate.

Thanks.