From e821edf01a1a3449b9d2771632ec2896e7b56e03 Mon Sep 17 00:00:00 2001 From: Kode Date: Mon, 14 Mar 2022 07:56:02 +0000 Subject: [PATCH] Fix tags url Fixes #763 --- app/Item.php | 2 +- resources/views/tags/list.blade.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) {{ $app->title }} - target }} href="{{ env('APP_URL') }}/tag/{{ $app->url }}">{{ $app->link }} + target }} href="{{ url('tag/'.$app->link) }}">{{ $app->link }} {!! Form::open(['method' => 'DELETE','route' => ['tags.destroy', $app->id],'style'=>'display:inline']) !!}