Identify the value that contains spaces or reserved characters, such as a search term, and encode that component with URL Encoder. Keep the URL's scheme, host, path separators, and query delimiters intact.
Test the final URL in a safe browser tab before submitting it. If it contains credentials or private query values, remove them before sharing. A %25 where you expected % often signals double encoding.
Which character or part of the form causes the link to fail?