mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
fix(web): broken links to places search (#7208)
This commit is contained in:
parent
5e1498a279
commit
529a83cc72
4 changed files with 16 additions and 6 deletions
9
web/src/lib/utils/metadata-search.ts
Normal file
9
web/src/lib/utils/metadata-search.ts
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import { QueryParameter } from '$lib/constants';
|
||||
import type { MetadataSearchDto } from '@immich/sdk';
|
||||
|
||||
export function getMetadataSearchQuery(metadata: MetadataSearchDto) {
|
||||
const searchParams = new URLSearchParams({
|
||||
[QueryParameter.QUERY]: JSON.stringify(metadata),
|
||||
});
|
||||
return searchParams.toString();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue