diff --git a/app/Item.php b/app/Item.php index 374b1868..bc52f7f6 100644 --- a/app/Item.php +++ b/app/Item.php @@ -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; } diff --git a/resources/views/tags/list.blade.php b/resources/views/tags/list.blade.php index c6cf37f0..e66a0be8 100644 --- a/resources/views/tags/list.blade.php +++ b/resources/views/tags/list.blade.php @@ -30,7 +30,7 @@ @foreach($apps as $app) {{ $app->title }} - target }} href="/tag/{{ $app->url }}">{{ $app->link }} + target }} href="{{ env('APP_URL') }}/tag/{{ $app->url }}">{{ $app->link }} {!! Form::open(['method' => 'DELETE','route' => ['tags.destroy', $app->id],'style'=>'display:inline']) !!} @@ -53,4 +53,4 @@ -@endsection \ No newline at end of file +@endsection