Changes for page Context Search Axel
Last modified by messines on 2022/10/14 11:41
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -15,8 +15,8 @@ 15 15 const json = await res.json(); 16 16 return JSON.stringify(json, null, 2); 17 17 } 18 - async function fetchCurrentCollabSearch(term /*, collabName*/) {19 - const res = await fetch(`/rest/wikis/xwiki/spaces/Collabs/spaces/ bougaultx/search?q=${term}&media=json`)18 + async function fetchCurrentCollabSearch(term, collabName) { 19 + const res = await fetch(`/rest/wikis/xwiki/spaces/Collabs/spaces/${collabName}/search?q=${term}&media=json`) 20 20 const json = await res.json(); 21 21 return JSON.stringify(json, null, 2); 22 22 }