Skip to content

Suggestion for internal links not working on Gutenberg paragraph block (Multisite) #34125

Open

Description

@tezell-mg

Description

When on a multisite network and in the Gutenberg paragraph block editor the link suggestion feature is not working. It works fine on single site.

image

Console error:
image

In case the image is too hard to read on the consol error "GET http://sage-life-site-network.lndo.site/wp-json/wp/v2/search?search=55&per_page=20&type=term&_locale=user" "400 Bad Request"a

Step-by-step reproduction instructions

  1. On a site within a multisite network create and publish a page (Page A)
  2. Create a second page and on that page (using the Gutenberg paragraph block) add text to that page.
  3. Select some of the text and click the Link button.
  4. Begin to type the title of the page created in Step 1

Notice that the suggestion functionality does not work. This is the issue.

Screenshots, screen recording, code snippet

multisite-link-suggestion-img-1
multisite-link-suggestion-img-2

Environment info

WordPress Version: 5.7
All Browsers
MacOS 11.1

Pre-checks

  • I have searched the existing issues.
  • I have tested with all plugins deactivated except Gutenberg.

Activity

  1. added
    [Feature] Link Editing
    [Feature] Multisite
    [Type] Bug
    on Aug 18, 2021
  2. getdave commented on Nov 16, 2021

    @getdave
    Contributor

    @anton-vlasenko @spacedmonkey Are either of you familiar with any quirks of multisite which might make the search endpoint of the REST API not work? For example, would we need to pass a blogID when making the request?

  3. mrfoxtalbot commented on Aug 25, 2022

    @mrfoxtalbot

    @igmoweb, @jconti, do you have any thoughts on what could be causing this feature not to work as expected in multisite? Thank you!

  4. getdave commented on Aug 26, 2022

    @getdave
    Contributor

    For clarity here is the endpoint being requested in the code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Feature] Link Editing[Feature] Multisite[Type] Bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions