ACSD-62591: Theme doesn’t switch properly when User Agent Rules configured
The ACSD-62591 patch fixes the issue where the theme doesn’t switch properly when the User Agent Rules are configured. This patch is available when the Quality Patches Tool (QPT) 1.1.55 is installed. The patch ID is ACSD-62591. Please note that the issue is scheduled to be fixed in Adobe Commerce 2.4.8.
Affected products and versions
The patch is created for Adobe Commerce version:
- Adobe Commerce (all deployment methods) 2.4.7-p3
Compatible with Adobe Commerce versions:
- Adobe Commerce (all deployment methods) 2.4.7 - 2.4.7-p3
magento/quality-patches
package to the latest version and check the compatibility on the Quality Patches Tool: Search for patches page. Use the patch ID as a search keyword to locate the patch.Issue
The theme doesn’t switch properly when the User Agent Rules are configured.
Steps to reproduce:
- Open Commerce Admin > Content > Design > Configuration.
- Edit a store view theme.
- Set
/iPhone|iPod|BlackBerry|Palm|Googlebot-Mobile|Mobile|mobile|mobi|Windows Mobile|Safari Mobile|Android|Opera Mini/i
in User Agent Rules and choose a different theme. - Save changes and clear caches.
- Open a Storefront page on a mobile device.
- Open the same page from a desktop browser.
Expected results:
The desktop browser and the mobile device display pages using their respective themes.
Actual results:
The desktop browser displays the cached page with the mobile theme.
Apply the patch
To apply individual patches, use the following links depending on your deployment method:
- Adobe Commerce or Magento Open Source on-premises: Quality Patches Tool > Usage in the Quality Patches Tool guide.
- Adobe Commerce on cloud infrastructure: Upgrades and Patches > Apply Patches in the Commerce on Cloud Infrastructure guide.
Related reading
To learn more about Quality Patches Tool, refer to:
- Quality Patches Tool: A self-service tool for quality patches in the Tools guide.