Fix Files.index path

This commit is contained in:
Jérémy Munsch 2022-06-20 13:55:47 +02:00
parent 16dcb72800
commit 64811b9eda
No known key found for this signature in database
GPG key ID: 18361AF3BFEC0FEC

View file

@ -74,7 +74,7 @@
@if($model->type->equals(FileType::stringlink()))
<a href="{{ $model->uri }}" target="_blank">{{ pathinfo($model->uri, PATHINFO_BASENAME) }}</a>
@else
<a href="{{ sprintf('/storage/%s', $model->file) }}" target="_blank">{{ pathinfo($model->file, PATHINFO_BASENAME) }}</a>
<a href="{{ asset($model->file) }}" target="_blank">{{ pathinfo($model->file, PATHINFO_BASENAME) }}</a>
@endif
</td>