Skip to content

Commit

Permalink
πŸ› fix reverseProxyPrefix setting
Browse files Browse the repository at this point in the history
  • Loading branch information
Kanti committed Nov 18, 2024
1 parent 9d2bcf1 commit e04a5f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Classes/ViewHelpers/RenderIncludeViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ public static function renderStatic(array $arguments, Closure $renderChildrenClo
$name = self::validateName($arguments);

$filename = static::getSiteName() . '_' . static::getLangauge() . '_' . $name;
$basePath = self::SSI_INCLUDE_DIR . $filename;
$reverseProxyPrefix = '/' . trim($GLOBALS['TYPO3_CONF_VARS']['SYS']['reverseProxyPrefix'] ?? '', '/') . '/';
$basePath = rtrim($reverseProxyPrefix, '/') . self::SSI_INCLUDE_DIR . $filename;
$absolutePath = Environment::getPublicPath() . $basePath;
if (self::shouldRenderFile($absolutePath, $arguments['cacheLifeTime'])) {
$html = parent::renderStatic($arguments, $renderChildrenClosure, $renderingContext);
Expand Down

0 comments on commit e04a5f7

Please sign in to comment.