From a5b7f1080944837fb8242fabfc3b6127d74e96ce Mon Sep 17 00:00:00 2001 From: risiko79 Date: Sun, 29 Aug 2021 19:55:55 +0200 Subject: [PATCH] FIX: #507 Tag URLs do not respect APP_URL see https://github.com/linuxserver/Heimdall/issues/507 --- app/Item.php | 2 +- resources/views/tags/list.blade.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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