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

The assets of the public_folder are not loaded #2047

Closed
luispastendev opened this issue Jun 8, 2019 · 1 comment
Closed

The assets of the public_folder are not loaded #2047

luispastendev opened this issue Jun 8, 2019 · 1 comment

Comments

@luispastendev
Copy link

Hi All!

The assets stored in the public folder are not loaded correctly, this problem only I have when I start my project with spark serve seems to be the content type of the files is not correct.

imagen

This is how I charge my file

<link rel="stylesheet" href="<?= base_url('public/css/styles_landing.css') ?>" type="text/css"/>

It seems only to be a problem of spark since in Apache it does not happen

regards!

@lonnieezell
Copy link
Member

Your website is expected to have it's document root set to the public folder, so public should never be in the URL - that's a safety feature. So you're right, spark will have issues with that, but that's by design.

If you need a different structure, than you'll need to edit spark to work for your situation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants