Title: [Plugin: Mobile Domain] Patch
Last modified: August 20, 2016

---

# [Plugin: Mobile Domain] Patch

 *  [bohica61](https://wordpress.org/support/users/bohica61/)
 * (@bohica61)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-mobile-domain-patch/)
 * Seems like the ywpmd_request_siteurl() function is returning an extra slash for
   the mobile domain.
 * I had to change line 312 from this:
 * `$go = str_replace(WPMD_DESKTOP, $get['domain'], WPMD_SITEURL);`
 * to this:
 * `$go = str_replace(WPMD_DESKTOP, $get['domain'], $my_domain);`
 * in order to get it to work with jQuery Mobile. The extra slash was messing up
   the links and ajax wasn’t working.
 * Also, your plugin doesn’t properly handle when the wordpress directory is not
   in the same directory as the site URL, but I don’t have time to figure out what’s
   wrong there.
 * [http://wordpress.org/extend/plugins/mobile-domain/](http://wordpress.org/extend/plugins/mobile-domain/)

The topic ‘[Plugin: Mobile Domain] Patch’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/mobile-domain.svg)
 * [Mobile Domain](https://wordpress.org/plugins/mobile-domain/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mobile-domain/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mobile-domain/)
 * [Active Topics](https://wordpress.org/support/plugin/mobile-domain/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mobile-domain/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mobile-domain/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [bohica61](https://wordpress.org/support/users/bohica61/)
 * Last activity: [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-mobile-domain-patch/)
 * Status: not a support question