WordPress.org

Ready to get started?Download WordPress

Forums

Transposh WordPress Translation
Transposh wil Dave's WordPress Live Search plugin URL (3 posts)

  1. pborg
    Member
    Posted 2 years ago #

    Hi,

    Have the plugin installed on several sites, works fine (and is brilliant).

    Have one site that also uses "Dave's WordPress Live Search"; DWLS works fine in the base language but Transposh is (at my request and a requirement of the site) adding language codes to the front of URLs for other languages. This is confusing DWLS somewhere, so AJAX calls go from:

    http://blog.com/wp-admin/admin-ajax.php?args

    to

    http://blog.com/en/wp-admin/admin-ajax.php?args

    and the search query fails with a 404 (unsuprisingly...!)

    Not sure if this is a DWLS issue or a transposh issue.

    http://wordpress.org/extend/plugins/transposh-translation-filter-for-wordpress/

  2. Dave Ross
    Member
    Posted 2 years ago #

    Dave's WordPress Live Search builds the admin-ajax.php URL using WordPress's admin_url() function. There's a corresponding admin_url filter that Transposh can implement to affect how that url gets built - not sure if they need to implement it or stop implementing it. I'll leave that for the Transposh folks to figure out. But I hope that helps!

    - Dave

  3. Ofer Wald
    Member
    Plugin Author

    Posted 2 years ago #

    Hi,

    I guess that the problem is (guessing, didn't test) is that DWLS is using partial URIs on their ajax requests instead of the fully qualified URLs, if that is the case, switching to using the full url on the admin page will solve the issue.

    The filter function suggested before me seems irrelevant,

    Sorry about the late answer, and good luck with fixing that.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic