ACSD-64592: Non-default store gift card claim links redirect to default website
The ACSD-64592 patch fixes an issue where in a multi-site environment, if a Virtual Gift Card is bought from a secondary (non-primary) website, the email containing the Gift Card Code link will direct users to the default website’s URL. Please note that the issue is scheduled to be fixed in Adobe Commerce 2.4.9.
Affected products and versions
The patch is created for Adobe Commerce version:
- Adobe Commerce (all deployment methods) 2.4.6-p3
Compatible with Adobe Commerce versions:
- Adobe Commerce (all deployment methods) 2.4.4 - 2.4.7-p4
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
In a multi-website setup, when a Virtual Gift Card is purchased from a secondary (non-default) site, the email containing the Gift Card Code link directs users to the default website’s URL.
Steps to reproduce:
- Create a secondary website, store, and store view.
- Configure different base URLs for the base and the secondary website.
- Create a Virtual Gift Card with some amount options.
- Generate a new code pool at Marketing > Promotions > Gift Card Accounts.
- Place an order with the Gift Card product on the secondary website.
- Invoice the order in the Commerce admin.
- Check the URL in the Gift Card Code link of the You’ve been sent a gift from Two email.
Expected results:
The Gift Card Code link should have the link to the second website.
Actual results:
The Gift Card Code link has the default website URL, even though the order is placed on the second website.
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.