Skip to content

Commit

Permalink
Merged in DSC-1066 (pull request DSpace#1205)
Browse files Browse the repository at this point in the history
[DSC-1066] search-filter query with [ ]

Approved-by: Stefano Maffei
  • Loading branch information
alisaismailati authored and steph-ieffam committed Jan 26, 2024
2 parents 974029f + 1b7438a commit 4c2d08c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/core/shared/search/search-configuration.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,8 @@ export class SearchConfigurationService implements OnDestroy {
*/
getCurrentQuery(defaultQuery: string) {
return this.routeService.getQueryParameterValue('query').pipe(map((query) => {
return query || defaultQuery;
const queryFromURL = query || defaultQuery;
return decodeURIComponent(queryFromURL) ?? '';
}));
}

Expand Down

0 comments on commit 4c2d08c

Please sign in to comment.