Skip to content

Logo url contains "/pub" in asynchronous command line generated emails #27043

@textarea

Description

@textarea

Preconditions (*)

  1. Magento 2.3.4

Steps to reproduce (*)

  1. Magento store is running on the webserver docroot /path_to_magento/pub
  2. Logo image selected in Content->Design->Configuration->Transactional Emails->Logo Image [design/email/logo db setting] (let's assume the value is "default/mylogo.png")
  3. Run an email with a template with logo tag with variable {{var logo_url}} from command line or by Magento cron (email sent from any http(s) action will work because webserver is calling /path_to_magento/pub/index.php while Magento cron use /path_to_magento/index.php).

Expected result (*)

  1. Received email with visible remote image
  2. Remote image logo has url https://store_url/media/email/logo/default/mylogo.png

Actual result (*)

  1. Cannot load remote image logo
  2. Remote image logo has url https://store_url/pub/media/email/logo/default/mylogo.png which is unreachable from the webserver.

Metadata

Metadata

Labels

Component: EmailComponent: SalesIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentReported on 2.3.4Indicates original Magento version for the Issue report.Reproduced on 2.3.xThe issue has been reproduced on latest 2.3 releaseReproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branch

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions