Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion resources/js/components/CacheTrackerModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ axios
<div v-if="show == 'urls'">
<ui-description v-text="__('There are no urls tracked containing :item.', { item: item })" v-if="urls.length < 1"></ui-description>

<ui-description v-text="__('The following URLs contain :item:', { item: 'ryan' })" v-if="urls.length"></ui-description>
<ui-description v-text="__('The following URLs contain :item:', { item: item })" v-if="urls.length"></ui-description>

<div class="flex flex-wrap gap-2 mt-4" v-if="urls.length">

Expand Down
4 changes: 3 additions & 1 deletion src/Http/Controllers/GetUrlsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public function __invoke(): array
return [];
}

if (! $item = Data::find($url)) {
if (! $item = Data::findByRequestUrl($url)) {
return [];
}

Expand All @@ -30,6 +30,8 @@ public function __invoke(): array

return collect(Tracker::all())
->filter(fn ($tracked) => in_array($item, $tracked['tags']))
->pluck('url')
->values()
->all();
}
}