Support the ongoing development of Laravel.io →
posted 9 years ago
Views Blade
Last updated 2 years ago.
0

I'd suggest looking into relative vs absolute paths.

This is a relative path:

<script type="text/javascript" src="public/js/jquery.slidereveal.min.js"></script>

What you want is an absolute path (notice that it starts with a forward slash):

<script type="text/javascript" src="/public/js/jquery.slidereveal.min.js"></script>

Next, the public folder should be your server's document root. If it is, you should be able to drop the public and just reference it like this:

<script type="text/javascript" src="/js/jquery.slidereveal.min.js"></script>
Last updated 9 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

EngBadr engbadr Joined 25 Sep 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.