diff --git a/docs/modules/ROOT/pages/developer-guide/standalone-mode.adoc b/docs/modules/ROOT/pages/developer-guide/standalone-mode.adoc index 30f7ac0be..892642305 100644 --- a/docs/modules/ROOT/pages/developer-guide/standalone-mode.adoc +++ b/docs/modules/ROOT/pages/developer-guide/standalone-mode.adoc @@ -73,6 +73,7 @@ To dynamically view a deployed NeoDash dashboard, you can deep-link into a deplo the following deeplinking options are available via URL parameters: - Appending `?page=1` to the URL will open up a dashboard at a given page. (Starting at zero). - Appending `?neodash_person_name=Tom` to the URL will set a dashboard parameter as a default for the entire dashboard. +- Appending `?neodash_list_person_name=Tom&neodash_list_person_name=Peter` to the URL will pass one parameter person_name as an array you can use in WHERE IN clauses Multiple parameters can be used in a deep-link by concatinating them: .... diff --git a/src/application/ApplicationThunks.ts b/src/application/ApplicationThunks.ts index 2bdc3fdaf..e5c394ce0 100644 --- a/src/application/ApplicationThunks.ts +++ b/src/application/ApplicationThunks.ts @@ -245,7 +245,11 @@ export const handleSharedDashboardsThunk = () => (dispatch: any) => { const paramsToSetAfterConnecting = {}; Array.from(urlParams.entries()).forEach(([key, value]) => { if (key.startsWith('neodash_')) { - paramsToSetAfterConnecting[key] = value; + if (key.startsWith('neodash_list_')) { + (paramsToSetAfterConnecting[key]??=[]).push(value); + } else { + paramsToSetAfterConnecting[key] = value; + } } }); if (Object.keys(paramsToSetAfterConnecting).length > 0) {