Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Asset loading broken when not in domain root folder #38

Open
1 of 2 tasks
mgrundkoetter opened this issue Apr 10, 2018 · 1 comment
Open
1 of 2 tasks

Asset loading broken when not in domain root folder #38

mgrundkoetter opened this issue Apr 10, 2018 · 1 comment
Assignees
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@mgrundkoetter
Copy link

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.

@Konafets
Copy link
Owner

Hi Michael,

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

@Konafets Konafets self-assigned this Apr 10, 2018
@Konafets Konafets added bug Something isn't working good first issue Good for newcomers labels Apr 10, 2018
mgrundkoetter added a commit to mgrundkoetter/typo3_debugbar that referenced this issue Apr 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants