Thanks for dropping by, Antonio ?? (Not to be confused with Antonio) Wait…
Anyway, WordPress supports both the /search/QUERY/
and ?s=QUERY
endpoints with pretty permalinks enabled. WordPress recognizes both as valid search queries, and we can grab the query from WordPress’ API, without having to know which one is used.
There is what I consider a defect in the redirect_canonical() function, where search queries aren’t redirected to respect your settings. This is in stark contrast with WordPress’ get_search_link(), which we use.
The only issue that comes from this is analytical software may not spot the query parameter. However, this should be handled by the analytical software implementors, especially since both endpoints have been accepted for a very long time. Google has listed suggestions on forwarding search events.
I hope this clears that up! Cheers ??