8000 CSS and JS files paths are not correct if website is installed in server subdirectory · Issue #129 · craftcms/spoke-and-chain · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
CSS and JS files paths are not correct if website is installed in server subdirectory #129
Open
@piotrpog

Description

@piotrpog

This is most likely related to Twigpack plugin. There is console errors like this:

bootstrap:108 Uncaught (in promise) Error: Loading CSS chunk 1 failed.
(/assets/dist/css/styles.6f82a377c329418c8101.css)
    at r.<computed>.r.<computed>.<computed>.t.push.r.<computed>.d.onerror (bootstrap:108:17)

It seems that javascript is trying to load files with address like http://localhost/assets/dist/js/styles.6f82a377c329418c8101.js, ignoring subdirectory. File links in Twig files are outputted correctly and contain subdirectory in which Craft is installed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0