Plugin Author
Gunu
(@grafcom)
@redywebs,
I have tried it on several sites but I can not reproduce that.
At your site first search in English for hotel – which gives a result.
Then changed the language and that gives also the desired result:
http://www.quicksilvertranslate.com/it/search/hotel/?s=hotel
But with the search widget in italian it gives a strange link and a 404:
http://www.quicksilvertranslate.com/it/clienti/soluzioni-per-lindustria/it-internet-and-e-commerce?s=hotel
@gunu that’s right, if you try searching from any of the non-default languages it always throw an 404 error. I’m using the default WP search widget. Any idea what the problem could be?
Plugin Author
Gunu
(@grafcom)
@redywebs,
can you understand/explain the strange link?
/it/clienti/soluzioni-per-lindustria/it-internet-and-e-commerce?s=hotel
Plugin Author
Gunu
(@grafcom)
@redywebs,
did you use the language selector widget?
@gunu no idea why, it seems to throw a random page plus the search bit ?s=hotel. It happens in all other languages and it is never the same page this is the result in spanish: /es/2732/es-in-the-us?s=hotel
Plugin Author
Gunu
(@grafcom)
@redywebs,
I see this <ul id=”qtranslate-chooser” at your language selector on my site it is <ul id=”qtranslate-2-chooser”
I do not know if this affects something.
@gunu, I did use the echo qtranxf_generateLanguageSelectCode('image'); in header.php
Plugin Author
Gunu
(@grafcom)
The search form used as a widget?
Yes, the default WP widget
Plugin Author
Gunu
(@grafcom)
under language settings “Compatibility Functions” checked, if not then you could try that
I have try enabling “Compatibility Functions”, no luck!
Plugin Author
Gunu
(@grafcom)
not coplete random but depending on the language it is always the same.
/it/clienti/soluzioni-per-lindustria/it-internet-and-e-commerce?s=fiets
/it/clienti/soluzioni-per-lindustria/it-internet-and-e-commerce?s=calendar
/es/2732/es-in-the-us?s=fiets
/es/2732/es-in-the-us?s=calendar
Maybe John (plugin author) knows a reason for this.
Thank you @gunu, I hope he has a closer look at this bug.
Plugin Author
Gunu
(@grafcom)
you could also try to deactivate all plugins apart from qTranslate X and see if it works then.
Also try a standard theme to check
I have also tried deactivating other plugins, but the bug persist.
It seems when it founds the country code in a post or page title throws that url and append the search to it, and I don’t think it has anything to do with the theme used.