• Resolved xflow

    (@xflow)


    Hi

    I am using the 2.6.2.6 plugin version and experience an error in the search process. Further more I am using the pre-path mode putting the language code in front of the URL. And I am hiding the language code from the URL in case of default language, in my case German.

    The search form get method always forwards the query string to http://www.mydomain.tld/xx (xx standing for the language code). Since for the default language I am hiding the language code from the URL, the search form get string should be actually http://www.mydomain.tld/

    Visitors viewing my site using the standard language don’t get shown their search results. Technically seen they have to remove /de from the URL to get their search results.

    Using qTranslate before, I didn’t have this problem.

    Is there are boolean function to get information if the standard language is selected or not? If yes, then I could hardcode a bypass.

    https://wordpress.org/plugins/mqtranslate/

Viewing 1 replies (of 1 total)
  • Thread Starter xflow

    (@xflow)

    Found the problem:

    Get method was addressing a wrong action:
    echo get_option('home').'/'.qtrans_getLanguage().'/'

    correct would be:
    echo esc_url( home_url( '/' ) );

    Works now. Sorry for double post.

Viewing 1 replies (of 1 total)
  • The topic ‘Search form issue’ is closed to new replies.