Reputation: 3857
I have installed Laravel5.3 and install Auth scaffolding after that I went to register
http://localhost/laravel53/public/register
the page is messy and no css ans js loaded correctly and in browser console I can see:
"NetworkError: 404 Not Found - http://localhost/css/app.css" and
"NetworkError: 404 Not Found - http://localhost/js/app.js"
and in C:\xampp\htdocs\laravel53\resources\views\layouts\app.blade.php the link to css file is not correct
<!-- Styles -->
<link href="/css/app.css" rel="stylesheet">
but when remove / from href the path become correct.
the question now is: Is this bug in laravel5.3 or any way to solve this issue without removing /
Upvotes: 0
Views: 785
Reputation: 941
In layout css path is hardcoded to '/css/app.css'. Please replace it with this {{url('/css/app.css')}}
Upvotes: 2