diff --git a/src/Fields/Media.php b/src/Fields/Media.php index cc17b3bd..564c3734 100644 --- a/src/Fields/Media.php +++ b/src/Fields/Media.php @@ -240,7 +240,7 @@ public function mapItems(Request $request, Model $model): array ->latest() ->paginate($request->input('per_page')) ->withQueryString() - ->setPath($this->getUri()) + ->setPath($this->replaceRoutePlaceholders($request->route())) ->through(function (Model $related) use ($request, $model): array { return $this->mapOption($request, $model, $related); })