FIX: #507 Tag URLs do not respect APP_URL
see https://github.com/linuxserver/Heimdall/issues/507
This commit is contained in:
parent
61a5a1a8b0
commit
a5b7f10809
2 changed files with 3 additions and 3 deletions
|
@ -106,7 +106,7 @@ class Item extends Model
|
|||
public function getLinkAttribute()
|
||||
{
|
||||
if((int)$this->type === 1) {
|
||||
return '/tag/'.$this->url;
|
||||
return env('APP_URL').'/tag/'.$this->url;
|
||||
} else {
|
||||
return $this->url;
|
||||
}
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
@foreach($apps as $app)
|
||||
<tr>
|
||||
<td>{{ $app->title }}</td>
|
||||
<td><a{{ $app->target }} href="/tag/{{ $app->url }}">{{ $app->link }}</a></td>
|
||||
<td><a{{ $app->target }} href="{{ env('APP_URL') }}/tag/{{ $app->url }}">{{ $app->link }}</a></td>
|
||||
<td class="text-center"><a href="{!! route('tags.edit', [$app->id]) !!}" title="{{ __('app.settings.edit') }} {!! $app->title !!}"><i class="fas fa-edit"></i></a></td>
|
||||
<td class="text-center">
|
||||
{!! Form::open(['method' => 'DELETE','route' => ['tags.destroy', $app->id],'style'=>'display:inline']) !!}
|
||||
|
@ -53,4 +53,4 @@
|
|||
</section>
|
||||
|
||||
|
||||
@endsection
|
||||
@endsection
|
||||
|
|
Loading…
Reference in a new issue