diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt index 22b1ad5e13..111c630d95 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt @@ -1270,7 +1270,7 @@ order: [[4, "asc"]], autoWidth: false, ajax: { - url: "/api/v1/suggestions?q=" + JSON.stringify(tabSuggestionData.search_params), + url: "/api/v1/suggestions?q=" + encodeURIComponent(JSON.stringify(tabSuggestionData.search_params)), delay: 300, // wait 300 milliseconds before triggering the request cache: true, dataType: "json",