Title: wrong path in javascript &#8211; qtranslate
Last modified: August 20, 2016

---

# wrong path in javascript – qtranslate

 *  Resolved [Nitroweb](https://wordpress.org/support/users/spyrosvl/)
 * (@spyrosvl)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/wrong-path-in-javascript-qtranslate/)
 * Hello,
 * When qtranslate is installed an additional path may be added to the url, for 
   example: [http://www.mydomain.com/en/page/](http://www.mydomain.com/en/page/)
 * In file : wpdev-booking-class.php
    Line 3114
 * `var wpdev_bk_plugin_url = '<?php echo get_home_url(null, '/wp-content/plugins/'.
   WPDEV_BK_PLUGIN_DIRNAME ); ?>';`
 * should be changed to `var wpdev_bk_plugin_url = '<?php echo WPDEV_BK_PLUGIN_URL;?
   >';`
 * to ensure that the path is correct.
 * Can you please change this if/when a new version is out?
 * Best regards,
    Spyros
 * [http://wordpress.org/extend/plugins/booking/](http://wordpress.org/extend/plugins/booking/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [wpdevelop](https://wordpress.org/support/users/wpdevelop/)
 * (@wpdevelop)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/wrong-path-in-javascript-qtranslate/#post-3600177)
 * Hello.
    Actually, in the next update we are changed that line: `var wpdev_bk_plugin_url
   = '<?php echo get_home_url(null, '/wp-content/plugins/'.WPDEV_BK_PLUGIN_DIRNAME);?
   >';` to this line: `var wpdev_bk_plugin_url = '<?php echo get_site_url(null, '/
   wp-content/plugins/'.WPDEV_BK_PLUGIN_DIRNAME ); ?>';`
 * Its fixed issue, when the blog is installed in the folder different than a root
   of your site. Also its have to be the same as your suggestion.
    Can you try to
   replace that line to this new one and recheck, if its not generate any issues
   with the your qtranslate? Thank you.

Viewing 1 replies (of 1 total)

The topic ‘wrong path in javascript – qtranslate’ is closed to new replies.

 * ![](https://ps.w.org/booking/assets/icon-256x256.gif?rev=3335907)
 * [Booking Calendar](https://wordpress.org/plugins/booking/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/booking/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/booking/)
 * [Active Topics](https://wordpress.org/support/plugin/booking/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/booking/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/booking/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [wpdevelop](https://wordpress.org/support/users/wpdevelop/)
 * Last activity: [13 years, 2 months ago](https://wordpress.org/support/topic/wrong-path-in-javascript-qtranslate/#post-3600177)
 * Status: resolved