[wp-trac] [WordPress Trac] #50241: Cannot publish the post using Gutenberg after changing REST URL prefix

WordPress Trac noreply at wordpress.org
Mon May 25 16:58:26 UTC 2020


#50241: Cannot publish the post using Gutenberg after changing REST URL prefix
-------------------------------------+-------------------------------------
 Reporter:  ibachal                  |       Owner:  (none)
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  REST API                 |     Version:  trunk
 Severity:  normal                   |  Resolution:
 Keywords:  has-screenshots          |     Focuses:  administration, rest-
  reporter-feedback                  |  api
-------------------------------------+-------------------------------------
Changes (by TimothyBlynJacobs):

 * keywords:  has-screenshots => has-screenshots reporter-feedback


Comment:

 Hi @ibachal,

 Could you share the code you are using to change the REST URL prefix?
 Gutenberg uses the `createRootURLMiddleware` to set the base URL of the
 REST API. The only [https://github.com/WordPress/gutenberg/search?q=wp-
 json&unscoped_q=wp-json hardcoded usages] of `wp-json` I see in the repo
 are docs or test code.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/50241#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list