This page has moved to Adobe Experience League and will be redirected soon.
ACSD-45168: SEO-friendly URLs not generated for products that have url_key attributes overridden
ACSD-45168: SEO-friendly URLs not generated for products that have url_key attributes overridden
The ACSD-45168 patch fixes the issue where SEO-friendly URLs are not generated for products that have url_key attributes overridden on the store-view level. This patch is available when the [!DNL Quality Patches Tool (QPT)] 1.1.24 is installed. The patch ID is ACSD-45168. Please note that the issue is scheduled to be fixed in Adobe Commerce 2.4.6.
Affected products and versions
The patch is created for Adobe Commerce version:
Adobe Commerce (all deployment methods) 2.4.5
Compatible with Adobe Commerce versions:
Adobe Commerce (all deployment methods) 2.4.2 - 2.4.5-p1
NOTE
The patch might become applicable to other versions with new [!DNL Quality Patches Tool] releases. To check if the patch is compatible with your Adobe Commerce version, update the magento/quality-patches
package to the latest version and check the compatibility on the [!DNL Quality Patches Tool]: Search for patches page . Use the patch ID as a search keyword to locate the patch.
Issue
SEO-friendly URLs are not generated for products that have url_key attributes overridden on the store-view level.
Steps to reproduce :
Set the configuration as follows by going to the [!UICONTROL Commerce Admin] > [!UICONTROL Stores] > [!UICONTROL Settings] > [!UICONTROL Configuration] > [!UICONTROL Catalog] > [!UICONTROL Search Engine Optimization] :
[!UICONTROL Use Categories Path for Product URLs] = Yes
[!UICONTROL Generate "category/product" URL Rewrites] = Yes
Clean the configuration cache.
Create two categories: [!UICONTROL Category 1] and [!UICONTROL Category 2].
Create two products: [!UICONTROL Product 1] in [!UICONTROL Category 1], [!UICONTROL Product 2] in [!UICONTROL Category 1].
Change the scope to [!UICONTROL Default Store View] for [!UICONTROL Product 1].
Uncheck the optional URL [!UICONTROL Key] in [!UICONTROL Search Engine Optimization].
Save the product.
Switch back to [!UICONTROL All Store Views].
Add [!UICONTROL Product 1] to [!UICONTROL Category 2], and add [!UICONTROL Product 2] to [!UICONTROL Category 2].
Check the [!UICONTROL url_rewrite] table or [!UICONTROL Marketing] > [!UICONTROL SEO & Search] > [!UICONTROL URL Rewrites].
Expected results :
The SEO-friendly URL for [!UICONTROL Category 2] is created for [!UICONTROL Product 1].
Actual results :
The SEO-friendly URL for [!UICONTROL Category 2] is missing for [!UICONTROL Product 1] because it had the URL key attribute overwritten for the store view scope.
Apply the patch
To apply individual patches, use the following links depending on your deployment method:
To learn more about [!DNL Quality Patches Tool], refer to:
For info about other patches available in QPT, refer to [!DNL Quality Patches Tool]: Search for patches in the [!DNL Quality Patches Tool] guide.
Was this article helpful?
Yes
No
0 out of 0 found this helpful