Weglot is not working properly with Ajax Search

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Weglot is not working properly with Ajax Search

This topic contains 1 reply, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 4 months, 4 weeks ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #46761
    xdialogue
    xdialogue
    Participant

    Hello we are using weglot for translating our site. Now is the search function not working. See advice of Weglot:
    ” I recommend contacting the plugin responsible for the search request, and ask them if it’s possible to add the URL parameter “?wg-choose-original=false” to the URL?”

    Is this possible for you to do and fix it so the search bar will work in all languages?

    Kind regards,
    Emiel Luten

    #46762
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi Emiel,

    Thank you for the details!

    There seems to be something wrong with your .htacces mod_rewrite or perlmalink configuration.
    When I look at the network tab when loading your site, there are a tons of 301 redirection requests: https://i.imgur.com/VS8L5gC.png

    All of them are trying to access the regular ajax handler, but it gets redirected incorrectly to the same URL: https://i.imgur.com/P1TRwha.png
    So it ends up in an infinite loop. This only happens when a translation is selected – so my guess is that it’s probably related to a specific cookie or similar.
    Make sure the default WordPress ajax url is not added to the translations as it is used across all the website, in your case it’s the https://www.vdvelde.com/wp-admin/admin-ajax.php url. This should always work regardless of the translation and should print 0 to the screen.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.