mirror of
https://github.com/flarum/framework.git
synced 2024-12-12 14:13:37 +08:00
Prepend base URL to assets
This commit is contained in:
parent
aa63feee7d
commit
6db682217a
|
@ -9,7 +9,7 @@
|
||||||
<meta name="theme-color" content="{{ $forum->attributes->themePrimaryColor }}">
|
<meta name="theme-color" content="{{ $forum->attributes->themePrimaryColor }}">
|
||||||
|
|
||||||
@foreach ($styles as $file)
|
@foreach ($styles as $file)
|
||||||
<link rel="stylesheet" href="{{ str_replace(public_path(), '', $file) }}">
|
<link rel="stylesheet" href="{{ $forum->attributes->baseUrl . str_replace(public_path(), '', $file) }}">
|
||||||
@endforeach
|
@endforeach
|
||||||
|
|
||||||
{!! $head !!}
|
{!! $head !!}
|
||||||
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
@if (! $noJs)
|
@if (! $noJs)
|
||||||
@foreach ($scripts as $file)
|
@foreach ($scripts as $file)
|
||||||
<script src="{{ str_replace(public_path(), '', $file) }}"></script>
|
<script src="{{ $forum->attributes->baseUrl . str_replace(public_path(), '', $file) }}"></script>
|
||||||
@endforeach
|
@endforeach
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user