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

Use absolute paths for your links to your assets. So instead of

<link rel="stylesheet" type="text/css" href="style.css" />

Use a / to use an absolute path:

<link rel="stylesheet" type="text/css" href="/style.css" />

Or generate the full url:

<link rel="stylesheet" type="text/css" href="{{ asset('style.css') }}" />

The same goes for links etc, because usually link are relative and the browser sees admin/user as a subdirectory.

Last updated 2 years ago.
0

Thanks, barryvdh

It works well with {{ asset('style.css') }}

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

kay899 kay899 Joined 7 Jul 2014

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.