paginate_links() returns a malformed URL for paginated search queries. The search query is not properly encoded, causing spaces in the search query string to be removed, rather than replaced with "+" in the URL.
Encode search string with urlencode() prior to concatenating to paginate_links.
paginate_links() returns a malformed URL for paginated search queries. The search query is not properly encoded, causing spaces in the search query string to be removed, rather than replaced with "+" in the URL.
Encode search string with
urlencode()
prior to concatenating to paginate_links.