{"id":2497960,"date":"2012-01-10T13:59:41","date_gmt":"2012-01-10T13:59:41","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/plugin-mobile-domain-patch\/"},"modified":"2016-08-20T04:17:03","modified_gmt":"2016-08-20T04:17:03","slug":"plugin-mobile-domain-patch","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/plugin-mobile-domain-patch\/","title":{"rendered":"[Plugin: Mobile Domain] Patch"},"content":{"rendered":"<p>Seems like the ywpmd_request_siteurl() function is returning an extra slash for the mobile domain.<\/p>\n<p>I had to change line 312 from this:<\/p>\n<p><code>$go = str_replace(WPMD_DESKTOP, $get[&#039;domain&#039;], WPMD_SITEURL);<\/code><\/p>\n<p>to this:<\/p>\n<p><code>$go = str_replace(WPMD_DESKTOP, $get[&#039;domain&#039;], $my_domain);<\/code><\/p>\n<p>in order to get it to work with jQuery Mobile.  The extra slash was messing up the links and ajax wasn&#8217;t working.<\/p>\n<p>Also, your plugin doesn&#8217;t properly handle when the wordpress directory is not in the same directory as the site URL, but I don&#8217;t have time to figure out what&#8217;s wrong there.<\/p>\n<p>https:\/\/wordpress.org\/extend\/plugins\/mobile-domain\/<\/p>\n","protected":false},"template":"","class_list":["post-2497960","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/2497960","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/2497960\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=2497960"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}