Ajax filter resets language
Feb 1, 2016 1:51 pm by olegthered
Feb 1, 2016 1:51 pm by olegthered
Hello,
when i change category via ajax filter my language choice resets
tracers.ru/archive
Oleg
Re: Ajax filter resets language
Feb 3, 2016 4:27 am by Edvard
Feb 3, 2016 4:27 am by Edvard
Hi,
You have this form:
<form action="http://en.tracers.ru/archive/" method="post" class="searchandfilter" data-sf-form-id="17942" data-is-rtl="0" data-results-url="http://tracers.ru/archive/" data-ajax-url="http://tracers.ru/?sfid=17942&sf_action=get_results" data-ajax-form-url="http://tracers.ru/?sfid=17942&sf_action=get_form" 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
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
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
Feb 4, 2016 8:32 am by olegthered
Sent
Re: Ajax filter resets language
Feb 4, 2016 4:59 pm by Edvard
Feb 4, 2016 4:59 pm by Edvard
Hi,
I have changed /www/tracers.ru/wp-content/plugins/search-filter-pro/public/includes/class-search-filter-display-shortcode.php 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
Feb 4, 2016 5:08 pm by olegthered
Hi,
Edvard I went to tracers.ru/archive chose english lang then change category in dropdown and language reset.
Re: Ajax filter resets language
Feb 4, 2016 5:29 pm by Edvard
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!
SIMILAR TOPICS
Large numbers of crawl errors with double language code | Jan 24, 2019 1:43 am | Replies: 1 | Post by: natastna2 |
Translate website to any specific language, on page load | Jan 19, 2019 6:49 am | Replies: 1 | Post by: Leaon7756 |
Graphic translation for every language is missing | Dec 19, 2018 7:54 am | Replies: 1 | Post by: Daryl Dixon |
How to remove mobile Language Select Button transparency | Dec 5, 2018 10:06 pm | Replies: 10 | Post by: JeffTR |
Change language automatically | Nov 26, 2018 9:29 pm | Replies: 3 | Post by: Antilb |