Forum Archive - Ajax filter resets language

Ajax filter resets language
Feb 1, 2016 1:51 pm by olegthered
Hello, when i change category via ajax filter my language choice resets Oleg
Re: Ajax filter resets language
Feb 3, 2016 4:27 am by Edvard
Hi, You have this form: <form action="" method="post" class="searchandfilter" data-sf-form-id="17942" data-is-rtl="0" data-results-url="" data-ajax-url="" data-ajax-form-url="" data-use-history-api="1" data-template-loaded="0" data-lang-code="" data-ajax="1" data-ajax-target="#search-filter-results-17942" data-ajax-links-selector=".pagination a" data-update-ajax-url="1" data-only-results-ajax="1" data-scroll-to-pos="0" data-auto-update="1" id="search-filter-form-17942" autocomplete="off"> You will need to change data-results-url, data-ajax-url, data-ajax-form-url attributes to be relative or to include the language code like in action attribute. This attributes are not standard attributes like action, that's why they are not getting replaced with appropriate language domain automatically. Thanks!
Re: Ajax filter resets language
Feb 3, 2016 12:08 pm by olegthered
I do not know where I should make these changes. Can you help me?
Re: Ajax filter resets language
Feb 4, 2016 3:43 am by Edvard
Hi, You may send FTP access to [email protected] and I'll look into your files. Thanks!
Re: Ajax filter resets language
Feb 4, 2016 8:32 am by olegthered
Re: Ajax filter resets language
Feb 4, 2016 4:59 pm by Edvard
Hi, I have changed /www/ file which fixed the issue. You may search for gtranslate fix inside of the file to see the changes. If you decide to update search-filter-pro plugin make sure that after update the changes are not lost. Thanks!
Re: Ajax filter resets language
Feb 4, 2016 5:08 pm by olegthered
Hi, Edvard I went to chose english lang then change category in dropdown and language reset.
Re: Ajax filter resets language
Feb 4, 2016 5:29 pm by Edvard
OK, this time it is loading the content using ajax which responds with JSON format. But the site URL doesn't change as before. We just need to define how to translate your JSON objects. Thanks!


Large numbers of crawl errors with double language codeJan 24, 2019 1:43 amReplies: 1Post by: natastna2
Translate website to any specific language, on page loadJan 19, 2019 6:49 amReplies: 1Post by: Leaon7756
Graphic translation for every language is missingDec 19, 2018 7:54 amReplies: 1Post by: Daryl Dixon
How to remove mobile Language Select Button transparencyDec 5, 2018 10:06 pmReplies: 10Post by: JeffTR
Change language automaticallyNov 26, 2018 9:29 pmReplies: 3Post by: Antilb

Try GTranslate with a free 15 day trial