MDVA-38132: Infinite redirect when backend URL is different from default website URL

Last update: 2023-07-27
  • Topics:
  • Cache
    View more on this topic
  • Created for:
  • Admin

The MDVA-38132 patch fixes the issue of infinite redirect when the backend URL is different from the default website URL. This patch is available when the Quality Patches Tool (QPT) 1.0.25 is installed. The patch ID is MDVA-38132. Please note that the issue is scheduled to be fixed in Adobe Commerce 2.4.3.

Affected products and versions

The patch is created for Adobe Commerce version:
Adobe Commerce on cloud infrastructure 2.3.4-p2

Compatible with Adobe Commerce versions:
Adobe Commerce (all deployment methods) 2.3.3-2.4.2-p1

NOTE

The patch might become applicable to other versions with new 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 Quality Patches Tool: Search for patches page. Use the patch ID as a search keyword to locate the patch.

Issue

The Commerce Admin panel has an infinite redirect when the backend URL is different from the default website URL.

Prerequisites:

  • Base URL is used for both backend and storefront. Base Secure URL is not used.
  • The web server is configured so that Adobe Commerce is accessible via two different URLs. URL1 is used for Adobe Commerce installation.

Steps to reproduce:

  1. Go to Admin Panel > Stores > Configuration > Web.
  2. Leave original Base URL in global configuration. It’s your URL1.
  3. Switch to Main Website scope.
  4. Change Base URL to a different URL (see preconditions to set up web server correctly). This is your URL2.
  5. Clear cache (if necessary and possible).
  6. Open Admin Panel.

Expected results:

Admin Panel is successfully opened and can be navigated. Main Website’s store is successfully opened and can be navigated.

Actual results:

Infinite redirect happens. Adobe Commerce redirects from URL1 to URL2 and continues back and forth.

Apply the patch

To apply individual patches use the following links depending on your Adobe Commerce product:

To learn more about Quality Patches Tool, refer to:

For info about other patches available in QPT tool, refer to the Patches available in QPT tool section.

On this page