Exif stripping
This commit is contained in:
@@ -255,6 +255,12 @@
|
||||
|
||||
// Build URL with reactive page state
|
||||
const url = new URL(page.url);
|
||||
|
||||
// Remove all existing filter params first to avoid stale params
|
||||
const keysToDelete = Array.from(url.searchParams.keys()).filter((k) => k.startsWith('filter['));
|
||||
keysToDelete.forEach((k) => url.searchParams.delete(k));
|
||||
|
||||
// Add current filters
|
||||
for (const [cat, val] of Object.entries(selectedFilters)) {
|
||||
if (val) {
|
||||
url.searchParams.set(`filter[${cat}]`, val);
|
||||
|
||||
Reference in New Issue
Block a user