{"id":13724621,"date":"2020-11-30T10:12:32","date_gmt":"2020-11-30T10:12:32","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/wrong-rest-api-path-accessed-on-multisite\/"},"modified":"2020-11-30T10:12:32","modified_gmt":"2020-11-30T10:12:32","slug":"wrong-rest-api-path-accessed-on-multisite","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/wrong-rest-api-path-accessed-on-multisite\/","title":{"rendered":"Wrong REST API path accessed on Multisite"},"content":{"rendered":"<p>My dev site is WordPress Multisite.<br \/>\nregister_rest_route() correctly registers example.com\/site-name\/wp-json\/find-my-blocks\/blocks but the find-my-blocks.js script looks for \/wp-json\/find-my-blocks\/blocks<\/p>\n<p>If I access example.com\/site-name\/wp-json\/find-my-blocks\/blocks I see the returned JSON.<\/p>\n<p>Could wp_localize_script be used to pass the site_url to the script?<br \/>\nI&#8217;m happy to help test any changes.<\/p>\n","protected":false},"template":"","class_list":["post-13724621","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/13724621","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\/13724621\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=13724621"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}