I'm trying to include the videojs.thumbnails.js file in my layout.html:

<script src="./videojs.thumbnails.js"></script>

It's located at the same level.

enter image description here

I am getting the following error: http://localhost:3000/videojs.thumbnails.js 404 (Not Found)

Any ideas what I am missing?

1 Answer 1


It looks like this is all happening in Craft's template folder, where anything with an underscore—like your _layout directory and its contents—won't be accessible via URL.

You'll definitely want to adjust your project layout to keep Craft's templates together in /craft/templates, and any front-end resources (like your videojs.thumbnails.js, thumbnails.png, etc.) in the /public folder.

The Routing documentation fully explains what Craft does with any front-end URL it gets—it's a tad intense but should fully explain what happens with a request.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.