Open Nuranto opened 6 months ago
Hi @Nuranto. 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:
@magento give me 2.4-develop instance
- upcoming 2.4.x release@magento I am working on this
Join Magento Community Engineering Slack and ask your questions in #github channel. :warning: According to the Magento Contribution requirements, all issues must go through the Community Contributions Triage process. Community Contributions Triage is a public meeting. :clock10: You can find the schedule on the Magento Community Calendar page. :telephone_receiver: The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket.
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:
Area: XXXXX
label to the ticket, indicating the functional areas it may be related to.2.4-develop
branch@magento give me 2.4-develop instance
to deploy test instance on Magento infrastructure. 2.4-develop
branch, please, add the label Reproduced on 2.4.x
.Issue: Confirmed
once verification is complete. Hi @engcom-Dash. 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:
Area: XXXXX
label to the ticket, indicating the functional areas it may be related to.2.4-develop
branch@magento give me 2.4-develop instance
to deploy test instance on Magento infrastructure. 2.4-develop
branch, please, add the label Reproduced on 2.4.x
.@magento give me 2.4-develop instance
Hi @engcom-Dash. Thank you for your request. I'm working on Magento instance for you.
Hi @engcom-Dash, here is your Magento Instance: https://b2c4c630e425172c56bb24d1a3bcaca5.instances-prod.magento-community.engineering Admin access: https://b2c4c630e425172c56bb24d1a3bcaca5.instances-prod.magento-community.engineering/admin_e95b Login: b0cf1897 Password: bd03976aface
Hi @Nuranto
Thanks for reporting and collaboration.
Verified the issue on magento 2.4 dev instance but the issue is not reproduceable.
Steps to reproduce
We are seeing the below results :
a/b2 for store 0 and other-a/b2 for store 2. Url of category = https://.../other-a/b2, Canonical : https://.../other-a/b2
Please refer the screenshots attached. Let us know if we have missed anything.
I did more test, on several projects I'm working on. Also tried with all third-extensions disabled. I can reproduce the issue in all cases. I tried to change some configuration, but cannot manage to find the missing step to reproduce :/
I also checked the code, i don't saw anywhere the code that updates the url_path on all stores. There's src/vendor/magento/module-catalog-url-rewrite/Model/Category/Plugin/Category/UpdateUrlPath.php
but it only deals with new categories (if ($category->isObjectNew()
) and src/vendor/magento/module-catalog-url-rewrite/Observer/CategoryUrlPathAutogeneratorObserver.php
but it only deals with children.
I guess I'm missing something...
Hi @engcom-Delta. 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:
Area: XXXXX
label to the ticket, indicating the functional areas it may be related to.2.4-develop
branch@magento give me 2.4-develop instance
to deploy test instance on Magento infrastructure. 2.4-develop
branch, please, add the label Reproduced on 2.4.x
.Issue: Confirmed
once verification is complete. Hi @Nuranto,
Verified the issue on 2.4-develop and it is reproducible.
Hence, Confirming the issue.
Steps to reproduce:-
1.Create 2 stores ( default = 1, other_store = 1), same category root assigned. 2.Create this category tree : 3.Cat A (url key = a in default view. url key = other-a in store 1) Cat AB (url key = b in default view) 4.Check catalog_category_entity_varchar table where attribute_id = (ID of url_path) and category_id = (ID of cat AB). You should see : a/b for store 0 and other-a/b for store 2. 5.Check frontend canonical url for store2 - AB category page. You should see https://.../other-a/b 6.Change url_key for cat AB, in default view, for b2 7.Check again catalog_category_entity_varchar table where attribute_id in (ID of url_path) and category_id = (ID of cat AB). 8.Check again canonical url for store2 AB category page.
Please refer the attached screenshot.
Created one store other than default store
Same category assigned
Category A created and given url key = a in default view
url key = other-a in store 1 view
Category AB created and given url key = b in default view
Check catalog_category_entity_varchar table , a/b for store 0 and other-a/b for store 1.
frontend canonical url for store2 - AB category page. You should see https://.../other-a/b
Change url_key for cat AB, in default view, for b2
Check catalog_category_entity_varchar table
frontend canonical url for store2 - AB category page
Unfortunately, not enough information was provided to create a Jira ticket. Please make sure you added the following label(s): Reproduced on 2.4.x
, ^Area:.*
Once all required labels are present, please add Issue: Confirmed
label again.
Unfortunately, not enough information was provided to create a Jira ticket. Please make sure you added the following label(s): Reproduced on 2.4.x
, ^Area:.*
Once all required labels are present, please add Issue: Confirmed
label again.
Unfortunately, not enough information was provided to create a Jira ticket. Please make sure you added the following label(s): Reproduced on 2.4.x
, ^Area:.*
Once all required labels are present, please add Issue: Confirmed
label again.
Unfortunately, not enough information was provided to create a Jira ticket. Please make sure you added the following label(s): Reproduced on 2.4.x
, ^Area:.*
Once all required labels are present, please add Issue: Confirmed
label again.
:white_check_mark: Jira issue https://jira.corp.adobe.com/browse/AC-11859 is successfully created for this GitHub issue.
:white_check_mark: Confirmed by @engcom-Delta. Thank you for verifying the issue.
Issue Available: @engcom-Delta, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.
:x: Cannot export the issue. This GitHub issue is already linked to Jira issue(s): https://jira.corp.adobe.com/browse/AC-11859
:x: Cannot export the issue. This GitHub issue is already linked to Jira issue(s): https://jira.corp.adobe.com/browse/AC-11859
:x: Cannot export the issue. This GitHub issue is already linked to Jira issue(s): https://jira.corp.adobe.com/browse/AC-11859
@magento I am working on this
Hello,
Internal team has started to work on it
Thanks
Preconditions and environment
Steps to reproduce
a
in default view. url key =other_a
in store 2)b
in default view)catalog_category_entity_varchar
table where attribute_id =(ID of url_path)
and category_id =(ID of cat AB)
. You should see :a/b
for store 0 andother-a/b
for store 2.https://.../other-a/b
b2
catalog_category_entity_varchar
table where attribute_id in(ID of url_path)
and category_id = (ID of cat AB).Expected result
a/b2
for store 0 andother-a/b2
for store 2.https://.../other-a/b2
, Canonical :https://.../other-a/b2
Actual result
a/b2
for store 0 andother-a/b
for store 2.https://.../other-a/b2
, Canonical :https://.../other-a/b
Additional information
No response
Release note
No response
Triage and priority