So, why the default namespace persist if I did all right? Would it be some javascript function of wordpress that would be doing the request on the incorrect route? What function? How to fix it?
If the endpoint works then you changed it correctly, but if you’ve flushed rewrite rules/permalinks, and it still isn’t working, then you need to raise a bug with the Gutenberg github, or the official WP Trac.
Note that this is assuming you’re only trying to change the REST API endpoint of a single custom post type, and doing it via register_post_type and the rest_namespace parameter with WP 5.9/6 or higher.
Otherwise, it looks based on this code that you have found a WordPress/Gutenberg bug with retrieving autosaves:
Related Posts:
- Editor API Endpoint or Data Store That Provides a List of Meta Fields for Post Types
- Is it possible to access the wp-admin from one instance while keeping WP_HOME pointing to the balancing url?
- Custom Endpoint API based on attribute gutenberg block
- Proxy External API request in PHP from Edit.js in Block Plugin
- Custom validation on publish/ update in Block Editor
- Unable to edit server side rendered block
- apiFetch() returns infinite requests
- Block editor – Too many requests for server host
- fetch more than 100 records in block editor API call
- Block editor not loading with rest api custom code
- WP Gutenberg – How to parse simple images?
- Get the email of the author of the currently being edited post in Gutenberg frontend
- meta_query with standard getEntityRecords possible?
- Using Nested Blocks With Custom Query Block
- Where can I find the Gutenberg block icons?
- How to filter or remove default panels in Gutenberg PrePublish Panel
- Integrate Gutenberg as a Standalone App
- Set fullscreen mode by default
- Gutenberg extend core blocks
- What version of Gutenberg is included with WordPress?
- Add Formatting Buttons to Gutenberg core/paragraph BlockControls
- How to disallow a certain custom gutenberg block outside of an InnerBlocks block?
- Wrapping Gutenberg Blocks with a div/section/article
- Gutenberg Default attributes are empty
- Group block without inner wrapper
- How to stop Gutenberg injecting inline font styles
- How to get Gutenberg Gallery Block to output thumbnail images?
- Change list of allowed headline levels in Gutenberg
- srcset attribute in Gutenberg gallery blocks
- ACF attachment custom field in rest response
- Gutenburg InnerBlock single child
- WordPress-gutenberg – Block validation: Expected text
- Does `viewScript` in `block.json` actually enqueue a js file?
- Gutenberg: Block validation fails if editor is reloaded or post is edited. data.getBlocks(); is empty in save function
- Delete a Gutenberg Block Programmatically?
- Can Gutenberg be used as an editor on a page?
- Import external data into post using custom Gutenberg block
- How to transform block variant to default version?
- How can I add a color picker to a custom Gutenberg block which includes the default system palette from theme.json?
- How to makes Custom Post Type posts as Gutenberg’s patterns?
- Can’t run WP e2e-test-utils because the browser exits on login?
- Modify the InnerBlocks ‘Add block’ block appender label
- Do I need wp-tinymce-js?
- Custom Post Type and Custom REST API Endpoint result in Gutenberg editor not working
- wp_schedule_single_event issue with save_post hook in gutenberg
- Block editor fails to update HTML section when the word “from” is in source code
- Gutenberg extending the existing class
- Block Controls not showing
- WordPress Full Site Editing: How can I access my posts listing page?
- Editable button with RichText for Gutenberg custom block
- How Do I Prevent An Image From Automatically Adjusting In Guttenberg Block Gallery?
- How to reload data stored for a sever side gutenberg block in the editor
- How to remove the old “Custom CSS” from customizer after the theme has been migrated to Gutenberg FSE
- Connect WordPress and react front-end
- Gutenberg editor auto remove wrapping tags like
- Setting fontSize within core/heading
- Embedded block editor in block editor
- useSelect in block Edit always returns default store value
- Count Gutenberg blocks on the front-end?
- How to call a react hook on edit of registerBlockType?
- Create a trailing block with programatically generated Gutenberg columns
- How to make attributes unique to Gutenberg blocks
- How to check title is being entered in Title Case?
- Gutenberg link of internal page not showing
- How do I trigger the sidebar reveal for my sidebar plugin in the Gutenberg editor?
- Create Gutenburg Block to render inline SVG
- Gutenberg blocks not full width
- How to extend the URLPopover render settings for the paragraph Gutenberg block?
- Custom Image Gutenberg Block With Caption
- How to display dynamic block editor on front-end?
- Enable varying text for Phone, Tablet and Desktop
- Debouncing Input value with block attributes
- Pass component name in onChange [closed]
- Add another option to default link control settings panel?
- With full-site-editing menus, how do I create a non-linking top-level menu item with linking sub-pages
- How can I render a built-in Gutenberg block with InnerBlocks outside of the block editor?
- How do I add filters in Twenty-Twenty-Three without a functions.php?
- Different style options for the same block depending where it is used
- How to extract ‘intro’ block from page content, but later strip from page main content
- Unable to register a block using block.json in Block Editor
- $attributes not defined in block.json PHP template for ACF blocks
- add_editor_style now copying html styles to .editor-styles-wrapper?
- Building my first ever Gutenberg block
- Add custom block to submenu variation
- Is there a frontend equivalent for add_menu_page?
- How do I load styles for editing the admin interface for the block builder?
- Unable to edit custom post type, editor crashes. What to do?
- Default RichText Editor custom block fails validation
- Register block pattern category with higher priority
- Replace multiple RichText components in a single block – wp.blockEditor.RichText multiline prop is deprecated
- Using Button from WordPress components does not work when used for frontend
- How can I remove the H1 option from the gutenberg editor
- Adding a button to the format toolbar for custom styles
- How to “comment out” a block in WordPress (make it invisible without deleting it)?
- Query Loop block display multiple post types
- Align block editor
- Saving a meta value as an object using useEntityProp
- wp:query not responding to new settings
- Embeds (YouTube, Spotify) Work Live but Won’t Load in Block Editor [closed]
- How can I get rid of extra line space in this poetry stanza