From ece87596a133f6a729061b14eecd2e97b7baad72 Mon Sep 17 00:00:00 2001 From: Duncan McClean Date: Mon, 6 Jul 2026 09:11:42 +0100 Subject: [PATCH 1/2] Re-request listing when URL changes Fixes the asset browser not applying a filter on the first attempt. The browser swaps between its folder and search endpoints as filters are toggled, but the listing only re-requested on parameter changes, so the first request went to the stale (folder) URL which ignores filters. Co-Authored-By: Claude Opus 4.8 (1M context) --- resources/js/components/ui/Listing/Listing.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/resources/js/components/ui/Listing/Listing.vue b/resources/js/components/ui/Listing/Listing.vue index 0110f982577..2caf408c1a6 100644 --- a/resources/js/components/ui/Listing/Listing.vue +++ b/resources/js/components/ui/Listing/Listing.vue @@ -686,6 +686,10 @@ watch(parameters, (newParams, oldParams) => { pushState(); }); +// When the URL changes (e.g. the asset browser swaps between its folder and +// search endpoints as filters are toggled), re-request so the results reflect it. +watch(() => props.url, () => request()); + watch(loading, (loading) => Statamic.$progress.loading(id, loading)); onMounted(() => { From c8a6d0a02a6e5949007373fcc9dd146679d834a5 Mon Sep 17 00:00:00 2001 From: Duncan McClean Date: Mon, 6 Jul 2026 09:16:12 +0100 Subject: [PATCH 2/2] remove comments --- resources/js/components/ui/Listing/Listing.vue | 2 -- 1 file changed, 2 deletions(-) diff --git a/resources/js/components/ui/Listing/Listing.vue b/resources/js/components/ui/Listing/Listing.vue index 2caf408c1a6..e43106c6539 100644 --- a/resources/js/components/ui/Listing/Listing.vue +++ b/resources/js/components/ui/Listing/Listing.vue @@ -686,8 +686,6 @@ watch(parameters, (newParams, oldParams) => { pushState(); }); -// When the URL changes (e.g. the asset browser swaps between its folder and -// search endpoints as filters are toggled), re-request so the results reflect it. watch(() => props.url, () => request()); watch(loading, (loading) => Statamic.$progress.loading(id, loading));