jeudi 3 mars 2016

Bootstrap in Laravel not loading for certain Urls?

So I have been developing websites in Laravel for quite some time and very familiar with it.Recently I noticed something interesting while doing a project in Laravel 5.1. Whenever I load a view for a two level route or URI defined as

http://ift.tt/1oS0loY

The css and javascript does not load, using the src with the Laravel function {{ asset() }} does load half of the css and javascript files,but not all. Here is a screenshot of the view.

Whereas whenever the same view is returned for a route defined in a single level URI Eg:

http://ift.tt/1oS0jgQ

All the files load and work successfully. enter image description here

I am baffled and I have rechecked,I am definitely returning the same view with the same code each time.Earlier too I have encountered similar problems but couldn't work out that it might be because of the route defined.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire