diff --git a/app/Item.php b/app/Item.php index 8e487aca..05f5c3dd 100644 --- a/app/Item.php +++ b/app/Item.php @@ -93,7 +93,7 @@ class Item extends Model public function getLinkAttribute() { if((int)$this->type === 1) { - return env('APP_URL').'/tag/'.$this->url; + return 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 e66a0be8..83b0e28f 100644 --- a/resources/views/tags/list.blade.php +++ b/resources/views/tags/list.blade.php @@ -30,7 +30,7 @@ @foreach($apps as $app)