Skip to content

Asset loading broken when not in domain root folder #38

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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