Fixed #12772 - use the APP_URL config more consistently

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe
2023-04-05 16:05:40 -07:00
parent 6aec73c720
commit 161999fbca
27 changed files with 75 additions and 75 deletions
+1 -1
View File
@@ -267,7 +267,7 @@ class Location extends SnipeModel
foreach ($locations_with_children[$parent_id] as $location) {
$location->use_text = $prefix.' '.$location->name;
$location->use_image = ($location->image) ? url('/').'/uploads/locations/'.$location->image : null;
$location->use_image = ($location->image) ? config('app.url').'/uploads/locations/'.$location->image : null;
$results[] = $location;
//now append the children. (if we have any)
if (array_key_exists($location->id, $locations_with_children)) {