Mod: Set relative url for member links in meilisearch response
continuous-integration/drone/push Build is passing Details

This commit is contained in:
philipp lang 2024-04-10 16:23:50 +02:00
parent edc7aaccd6
commit 2ba31a0678
1 changed files with 2 additions and 2 deletions

View File

@ -503,8 +503,8 @@ class Member extends Model implements Geolocatable
'group_id' => $this->group->id,
'group_name' => $this->group->inner_name ?: $this->group->name,
'links' => [
'show' => route('member.show', ['member' => $this]),
'edit' => route('member.edit', ['member' => $this]),
'show' => route('member.show', ['member' => $this], false),
'edit' => route('member.edit', ['member' => $this], false),
],
'age_group_icon' => $this->ageGroupMemberships->first()?->subactivity->slug,
'is_leader' => $this->leaderMemberships()->count() > 0,