diff options
author | Joas Schilling <coding@schilljs.com> | 2020-08-25 17:16:12 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2020-08-26 09:48:03 +0200 |
commit | 97a17840659e55fbbb5f043babc58fd3d786ec36 (patch) | |
tree | 62bed813fcbe905db323008b7edc0e20069c3014 /core/src | |
parent | 904badad56801f069c549f5e4507954b5978476d (diff) | |
download | nextcloud-server-97a17840659e55fbbb5f043babc58fd3d786ec36.tar.gz nextcloud-server-97a17840659e55fbbb5f043babc58fd3d786ec36.zip |
Provide from on the search query too
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/services/UnifiedSearchService.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/src/services/UnifiedSearchService.js b/core/src/services/UnifiedSearchService.js index 937fec66723..1507ad5a2bd 100644 --- a/core/src/services/UnifiedSearchService.js +++ b/core/src/services/UnifiedSearchService.js @@ -60,6 +60,8 @@ export function search(type, query, cursor) { return axios.get(generateUrl(`/search/providers/${type}/search?term=${query}`), { params: { cursor, + // Sending which location we're currently at + from: window.location.pathname.replace('/index.php', '') + window.location.search, } }) } |