Merge pull request #4580 from DSpace/backport-4536-to-dspace-8_x

[Port dspace-8_x] Fix empty search query after previous non-empty search
This commit is contained in:
Tim Donohue
2025-07-24 13:42:03 -05:00
committed by GitHub

View File

@@ -183,7 +183,7 @@ export class SearchConfigurationService implements OnDestroy {
*/ */
getCurrentQuery(defaultQuery: string) { getCurrentQuery(defaultQuery: string) {
return this.routeService.getQueryParameterValue('query').pipe(map((query) => { return this.routeService.getQueryParameterValue('query').pipe(map((query) => {
return query || defaultQuery; return query !== null ? query : defaultQuery; // Allow querying when the value is empty
})); }));
} }