Closed
Description
Preconditions (*)
- Magento 2.4.2
Steps to reproduce (*)
- Admin panel » Stores » Configuration » General » Content Management » Use Static URLs for Media Content in WYSIWYG: No
- Admin panel » Stores » Configuration » Advanced » Admin » Admin Base URL » Use Custom Admin URL: Yes
- Set admin to a different (sub)domain than the actual store url.
- Add/edit a CMS page, static block or product page
- Add image
Expected result (*)
- Media tag with relative image url
<img src="{{media url="wysiwyg/test-image.png"}}" alt="">
Actual result (*)
- Media tag with static Magento admin url instead of store url
<img src="{{media url="https://dev.magentotest.local/wysiwyg/test-image.png"}}" alt="">
This issue is caused by inconsistend use of $this->_storeManager->getStore()
in /vendor/magento/module-cms/Helper/Wysiwyg/Images.php
Line 214: $this->_storeManager->getStore()
Line 299: $this->_storeManager->getStore($this->_storeId)
Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.
- Severity: S0 - Affects critical data or functionality and leaves users without workaround.
- Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
- Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
- Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
- Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.
Metadata
Metadata
Assignees
Labels
The issue has been fixed in 2.4-develop branchGate 3 Passed. Manual verification of the issue completed. Issue is confirmedA defect with this priority could have functionality issues which are not to expectations.The issue has been reproduced on latest 2.4-develop branchAffects non-critical data or functionality and does not force users to employ a workaround.