Skip to content

Asset loading broken when not in domain root folder #38

@mgrundkoetter

Description

@mgrundkoetter

Type of TYPO3 installation

  • Classic
  • Commposer (8.7.12)

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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggood first issueGood for newcomers

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions