Some special characters such as &
in a URL's query parameters need to be encoded to avoid the typical behavior of the &
character in separating multiple query parameters.
If you find that your query is being truncated to only include the portion of the query before the &
character (ie: "love & marriage" is truncated to "love"), the &
character is likely not being encoded.
In our guide to Syncing URLs with React InstantSearch, you can read more about the encoding/decoding process along with implementation examples.
You can also see this behavior in our React InstantSearch sandbox when you query "love & marriage":