Konafets / typo3_debugbar

A TYPO3 debugbar utilizing the PHP Debugbar to provide information of the system health to the frontend.
GNU General Public License v2.0
37 stars 6 forks source link

Asset loading broken when not in domain root folder #38

Open mgrundkoetter opened 6 years ago

mgrundkoetter commented 6 years ago

Type of TYPO3 installation

Expected behavior

Assets of the extension are loaded by the browser.

Actual behavior

404 for loading JS and CSS files.

Steps to reproduce

If you have an installation where the website is not located directly on the domain, but in a subfolder, loading the assets will fail because of the leading "/" slash in the path. www.domain.tld works fine whereas a baseUrl like www.domain.tld/web/ or localhost/customer/project does not. Removing it ("/") from AssetsRenderer::renderHead fixes the issue.

Konafets commented 6 years ago

Hi Michael,

thanks for reporting. I will look into it and would be happy to merge a PR from you ;-)