Fix tags url

Fixes #763
This commit is contained in:
Kode 2022-03-14 07:56:02 +00:00
parent 188316df47
commit e821edf01a
2 changed files with 2 additions and 2 deletions

View file

@ -93,7 +93,7 @@ class Item extends Model
public function getLinkAttribute() public function getLinkAttribute()
{ {
if((int)$this->type === 1) { if((int)$this->type === 1) {
return env('APP_URL').'/tag/'.$this->url; return url('tag/'.$this->url);
} else { } else {
return $this->url; return $this->url;
} }

View file

@ -30,7 +30,7 @@
@foreach($apps as $app) @foreach($apps as $app)
<tr> <tr>
<td>{{ $app->title }}</td> <td>{{ $app->title }}</td>
<td><a{{ $app->target }} href="{{ env('APP_URL') }}/tag/{{ $app->url }}">{{ $app->link }}</a></td> <td><a{{ $app->target }} href="{{ url('tag/'.$app->link) }}">{{ $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"><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"> <td class="text-center">
{!! Form::open(['method' => 'DELETE','route' => ['tags.destroy', $app->id],'style'=>'display:inline']) !!} {!! Form::open(['method' => 'DELETE','route' => ['tags.destroy', $app->id],'style'=>'display:inline']) !!}