WordPress.org

Forums

[resolved] What is foo.x=0&foo.y=0 in Sitesearch? (5 posts)

  1. crazyhero
    Member
    Posted 4 years ago #

    If I use the search on my WordPress 2.6. blog I get a result URL like:

    http://www.domain.com/?s=term&foo.x=0&foo.y=0

    What are those foo parameters and how can I get rid of them?

  2. wpbct7
    Member
    Posted 4 years ago #

    These parameters are result of submitting form with an image button. They are added by the browser when user submits the form.

  3. crazyhero
    Member
    Posted 4 years ago #

    Ok, so... is there any way to prevent this?

  4. wp_guy
    Member
    Posted 4 years ago #

    If you change the form submit button to be an actual button instead of an image, yes.

  5. crazyhero
    Member
    Posted 4 years ago #

    I want to use a magnifier image instead of an button. Finaly I found a solution:

    I changed the form method to post and it works like a charm.

    Before: form method="get"
    After: form method="post"

    Thank you anyway.

Topic Closed

This topic has been closed to new replies.

About this Topic