Bug #93940

Wrong path to backend login logo in system email

Added by Patrick no-lastname-given 6 months ago. Updated 6 months ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Mailer API
Target version:
-
Start date:
2021-04-18
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
10
PHP Version:
7.4
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

The rendered system email header logo image path for the fluid variable {typo3.systemConfiguration.backend.loginLogo} is wrong.

In my scenario, the backend loginLogo setting is set to EXT:sitepackage/Resources/Public/Images/Backend/login-logo.png.

This condition in private\typo3\sysext\core\Resources\Private\Layouts\SystemEmail.html is true and will render the image:

<f:if condition="{typo3.systemConfiguration.backend.loginLogo}">
    <f:then>
        <f:image src="{typo3.systemConfiguration.backend.loginLogo}" absolute="1" alt="TYPO3 Logo" height="41" width="150" />
    </f:then>
...

The path to the image is unfortunately wrong for users in the final output, the image can never be loaded:

<img alt="TYPO3 Logo" src="http://typo3_10.4_prod/vendor/bin/typo3/typo3temp/assets/_processed_/c/9/csm_login-logo_90bde36d29.png" width="150" height="41" />

#1

Updated by Patrick no-lastname-given 6 months ago

  • Description updated (diff)
#2

Updated by Patrick no-lastname-given 6 months ago

Seems that the path is only wrong if the scheduler is executed via cli (cronjob). The logo path is correct if the task is executed manually per backend.

Additional the custom system email fluid layout $GLOBALS['TYPO3_CONF_VARS']['MAIL']['layoutRootPaths'][700] = 'EXT:sitepackage/Resources/Private/Layouts/SystemEmail'; is not taken if task is executed via cli.

Also available in: Atom PDF