I have a FORM built with Drupal 7 Form API, with URL (action) pointing to:
and the default method POST. My SEO mate has asked me to change the method to GET, so for SEO indexing purposes the URL will be explicit, for example:
I have changed the behaviour of the form by adding the following line at the end of the
$form["#method"] = "get";
Now the problem is that the generated URL has some "extra" info that I wouldn't want to be displayed. And it is apparently unnecessary, because if the View (landing page of the FORM) is paged, if I only pass the above parameters + the page, it works perfectly, also if I remove this extra info by hand.
The "ugly" URL is:
www.example.com/search-products?brand=BRAND%201&model=Model%20Fantastic&op=Submit&form_build_id=form-Ab-i8LlsUjtftyuTlL8b7OvZj_tM1MfyuKCnAg5-VncY&form_id=hook_form (extra info: ... &op=Submit&form_build_id=form-Ab-i8LlsUjtftyuTlL8b7OvZj_tM1MfyuKCnAg5-VncY&form_id=hook_form )
How can I make Drupal ignore that extra info?