Skip to content

Commit

Permalink
[BUGFIX] Do not remove leading slash if absRefPrefix is /
Browse files Browse the repository at this point in the history
  • Loading branch information
sabbelasichon committed Apr 19, 2021
1 parent 8a759ae commit cc15a43
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Classes/Asset/TagRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,10 @@ private function removeLeadingSlash($file, array $parameters): bool
return false;
}

if ($this->getTypoScriptFrontendController()->absRefPrefix === '/') {
return false;
}

return !GeneralUtility::isValidUrl($file);
}

Expand Down

0 comments on commit cc15a43

Please sign in to comment.