mirror of
https://github.com/open-webui/open-webui
synced 2024-11-06 16:59:42 +00:00
Merge pull request #5954 from open-webui/dev
refac: url param tool_ids -> tools/tool-ids
This commit is contained in:
commit
8b3972c6df
@ -354,7 +354,11 @@
|
||||
|
||||
if ($page.url.searchParams.get('q')) {
|
||||
prompt = $page.url.searchParams.get('q') ?? '';
|
||||
selectedToolIds = ($page.url.searchParams.get('tool_ids') ?? '')
|
||||
selectedToolIds = (
|
||||
$page.url.searchParams.get('tools') ??
|
||||
$page.url.searchParams.get('tool-ids') ??
|
||||
''
|
||||
)
|
||||
.split(',')
|
||||
.map((id) => id.trim())
|
||||
.filter((id) => id);
|
||||
|
Loading…
Reference in New Issue
Block a user