fix function to match default value of websvc.opensearch.svccontext

This commit is contained in:
nwoodward
2022-10-27 16:11:03 -05:00
parent dc4b4ffe4d
commit 434e0cb907

View File

@@ -114,7 +114,7 @@ export class RSSComponent implements OnInit, OnDestroy {
* @returns The combine URL to opensearch * @returns The combine URL to opensearch
*/ */
formulateRoute(uuid: string, opensearch: string, sort: SortOptions, query: string): string { formulateRoute(uuid: string, opensearch: string, sort: SortOptions, query: string): string {
let route = 'search?format=atom'; let route = '?format=atom';
if (uuid) { if (uuid) {
route += `&scope=${uuid}`; route += `&scope=${uuid}`;
} }
@@ -126,7 +126,7 @@ export class RSSComponent implements OnInit, OnDestroy {
} else { } else {
route += `&query=*`; route += `&query=*`;
} }
route = '/' + opensearch + '/' + route; route = '/' + opensearch + route;
return route; return route;
} }