Title: Problem with URL
Last modified: August 30, 2016

---

# Problem with URL

 *  Resolved [levangiorgadze](https://wordpress.org/support/users/levangiorgadze/)
 * (@levangiorgadze)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/problem-with-url-11/)
 * Hello,
    Thanks for the best Plugin!!!
 * I have problem with one of the file in my theme (sort.js) here is part of the
   code:
 *     ```
       jQuery.ajax({
   
       		 method: "POST",
       		 url: "../wp-content/themes/THEME/include/ajax/sort.php",
       		 data: {
       		     order_choice: order_choice,
       		     nicdark_paged: nicdark_paged,
       		     nicdark_layout: nicdark_layout,
       		     nicdark_asc_desc: nicdark_asc_desc,
       		     nicdark_posttype: nicdark_posttype,
       		     nicdark_keyword: nicdark_keyword,
       		     nicdark_date_from: nicdark_date_from,
       		     nicdark_date_to: nicdark_date_to,
       		     nicdark_price_from: nicdark_price_from,
       		     nicdark_price_to: nicdark_price_to,
       		     nicdark_destination_package: nicdark_destination_package,
       		     nicdark_typology_package: nicdark_typology_package,
       		     nicdark_duration_package: nicdark_duration_package,
       		     nicdark_person_package: nicdark_person_package
       		 }
   
       	})
       ```
   
 * this code call URL http:// tbilisilocalguide.com/wp-content/themes/_THEME_/include/
   ajax/sort.php
 * and on the website, if i will choose different language, this link is changed,
   like: http:// tbilisilocalguide.com/ **ru** /wp-content/themes/_THEME_/include/
   ajax/sort.php
 * there is come **(ru)** and all URL is changing, after this ajax not working,
   
   what i should to do? how i can fix that?
 * p.s. sorry for my English…
 * [https://wordpress.org/plugins/qtranslate-x/](https://wordpress.org/plugins/qtranslate-x/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [John Clause](https://wordpress.org/support/users/johnclause/)
 * (@johnclause)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/problem-with-url-11/#post-6726517)
 * Change url to be [http://tbilisilocalguide.com/wp-content/themes/THEME/include/ajax/sort.php](http://tbilisilocalguide.com/wp-content/themes/THEME/include/ajax/sort.php)
   or /wp-content/themes/THEME/include/ajax/sort.php ?
 *  Thread Starter [levangiorgadze](https://wordpress.org/support/users/levangiorgadze/)
 * (@levangiorgadze)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/problem-with-url-11/#post-6726549)
 * Sorry you ask me or this is a suggestion?
 *  Plugin Author [John Clause](https://wordpress.org/support/users/johnclause/)
 * (@johnclause)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/problem-with-url-11/#post-6726551)
 * I suggest to change
 *     ```
       url: "../wp-content/themes/THEME/include/ajax/sort.php"
       ```
   
 * to
 *     ```
       url: "/wp-content/themes/THEME/include/ajax/sort.php"
       ```
   
 * or to
 *     ```
       url: "[you home url]/wp-content/themes/THEME/include/ajax/sort.php"
       ```
   
 *  Thread Starter [levangiorgadze](https://wordpress.org/support/users/levangiorgadze/)
 * (@levangiorgadze)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/problem-with-url-11/#post-6726597)
 * Thank you so much! it’s fix my problems!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Problem with URL’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/qtranslate-x_f9f9f9.svg)
 * [qTranslate X](https://wordpress.org/plugins/qtranslate-x/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/qtranslate-x/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/qtranslate-x/)
 * [Active Topics](https://wordpress.org/support/plugin/qtranslate-x/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/qtranslate-x/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/qtranslate-x/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [levangiorgadze](https://wordpress.org/support/users/levangiorgadze/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/problem-with-url-11/#post-6726597)
 * Status: resolved